Last active
November 18, 2016 02:19
-
-
Save is8r/8a4b32a0ad1f939daaa108cd50b0ca45 to your computer and use it in GitHub Desktop.
連番の配列を作る配列のprototype拡張
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
| Array.prototype.arrange = function(n){ | |
| return Array.from(new Array(n)).map((v,i) => i) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment