Created
September 16, 2017 13:54
-
-
Save electerious/ccc39fb6fdda6d222a736c5007302590 to your computer and use it in GitHub Desktop.
Create an array with a specified length
This file contains hidden or 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 createArray = (length) => Array.apply(null, Array(length)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: