Skip to content

Instantly share code, notes, and snippets.

@HomerJSimpson
Created September 6, 2016 19:51
Show Gist options
  • Save HomerJSimpson/e57916f0a624e6e4c2bd4e085488c372 to your computer and use it in GitHub Desktop.
Save HomerJSimpson/e57916f0a624e6e4c2bd4e085488c372 to your computer and use it in GitHub Desktop.
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