diff options
author | 2021-09-06 01:20:40 -0700 | |
---|---|---|
committer | 2021-09-06 01:21:55 -0700 | |
commit | 6dc05575a65bf6bdc6f52848d274b1f333a36076 (patch) | |
tree | 12ec4f4a8a469a7d92f2a127ed2e4d34013f6e7c /docs/src/components/Examples/Functions/random-index.js | |
parent | d321d8366b597e46ff8e3fc63d17622a9297505c (diff) | |
download | astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.gz astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.tar.zst astro-6dc05575a65bf6bdc6f52848d274b1f333a36076.zip |
scale back the examples page
Diffstat (limited to 'docs/src/components/Examples/Functions/random-index.js')
-rw-r--r-- | docs/src/components/Examples/Functions/random-index.js | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/docs/src/components/Examples/Functions/random-index.js b/docs/src/components/Examples/Functions/random-index.js deleted file mode 100644 index a55487da5..000000000 --- a/docs/src/components/Examples/Functions/random-index.js +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Random Index from Array - * @param {Number} length - Length of Array - * @returns Random Index from the Array - */ - -const randomIndex = (length) => Math.round(Math.random() * (0-length)) + length - 1 - -export default randomIndex
\ No newline at end of file |