Created
November 25, 2013 20:38
-
-
Save Zackio/7648458 to your computer and use it in GitHub Desktop.
Javascipt: Split big arrays to smaller
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
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