Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

split array in to equal parts and make 2 array javascript

chunk([1, 2, 3, 4, 5, 6, 7, 8], 4);     // [[1, 2, 3, 4], [5, 6, 7, 8]]
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #split #array #equal #parts #array #javascript
ADD COMMENT
Topic
Name
2+1 =