how to segregate a list of data in javascript code example Example: HOW TO SPLIT AN ARRAY JAVASCRIPT array.splice(index, number, item1, ....., itemN)