56
rated 0 times
[
61]
[
5]
/ answers: 1 / hits: 155792
/ 12 Years ago, thu, march 29, 2012, 12:00:00
var arr = ['a', 'b', 'c', 'd', 'e', 'f'];
var point = 'c';
How can I split the arr into two arrays based on the point variable, like:
['a', 'b']
and
['d', 'e', 'f']
More From » jquery