Created
April 7, 2018 08:16
-
-
Save hoangtranson/531f3e9a432a7e061b4a9d67dd9afe64 to your computer and use it in GitHub Desktop.
Util to work with array
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const arrayofRandom = randomCeil => length => Array.from({ length: length }, (v, i) => Math.floor(Math.random() * randomCeil)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment