Skip to content

Instantly share code, notes, and snippets.

@Zackio
Created November 25, 2013 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zackio/7648458 to your computer and use it in GitHub Desktop.
Save Zackio/7648458 to your computer and use it in GitHub Desktop.
Javascipt: Split big arrays to smaller
var splitArray = [];
while(yourArray.length) {
splitArray.push( yourArray.splice(0,10) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment