Created
September 29, 2019 03:16
-
-
Save luoyjx/041b34cf1b41c538a1f151b7e4b58243 to your computer and use it in GitHub Desktop.
create array fast way
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
let f = length => Array.from({length}).map((v,k) => k); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
result of
f(8)
will be