Created
September 6, 2016 19:51
-
-
Save HomerJSimpson/e57916f0a624e6e4c2bd4e085488c372 to your computer and use it in GitHub Desktop.
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
Array.from({length:100}).map(function(e, i) { return i+1; });a.map(function(item, index) { return index % 10 === 0 ? a.slice(index, index + 10) : null }).filter(x => x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment