Last active
January 15, 2018 08:51
-
-
Save bendc/17ea948bea5848a0e112ece8840bcfdd to your computer and use it in GitHub Desktop.
Array of arbitrary number of items
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 list = (length, callback) => | |
Array.from({length}, (hole, index) => callback(index)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example: