I had a array of size dynamic..I need the split the array whenever the user click on particular element in that array.I user can have multiple clicks on different elements.
So we dont have a exact number to split the array..
suppose we have an array consists of 100 elements. the user clicks on the 3rd element in the array then the array should split into 2 different array..one should store (1 ,2) an the other should store (3 – 100)elements. and again the user clicks on the 10 element then array should split and in one array it should store (3 – 9) another one should have (10 – 100)elements..like that the user can have many clicks.and at every time the array should split.
Can I a solution for this using javascript?