Last active
January 4, 2016 13:29
-
-
Save wangwen1220/8628162 to your computer and use it in GitHub Desktop.
JS: 快速初始化 Javscript 数组 | js arrow
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
| // 快速初始化 Javscript 数组 | |
| var numbers = []; | |
| for (var i = 1; numbers.push(i++) < 100;); | |
| //numbers = [0,1,2,3 ... 100] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment