Created
November 15, 2019 19:22
-
-
Save tacitphoenix/d8450a03845ef4f9a98aef316de243a9 to your computer and use it in GitHub Desktop.
Nice to have wrapper utility functions wrapped around core libraries
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
const randNum = (n) => Math.floor(Math.random() * n) + 1; | |
const makeArr = (n) => Array.from(Array(n)).map(() => 0); | |
const seqFn = (fn) => makeArr(20).map(() => fn()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment