tutorial.eyehunts.com
JavaScript split array | into a chunk, two based on condition - EyeHunts
JavaScript split array can be done by using a slice() method. The slice() method returns a shallow copy of a portion of an array into a new array object.
Rohit