63
rated 0 times
[
65]
[
2]
/ answers: 1 / hits: 16041
/ 8 Years ago, wed, september 28, 2016, 12:00:00
I have an array var plans=[a, b, c, d ];
with prices based monthly any yearly.
Consider- a and b are monthly and c and d are yearly.
So, I want to split the array based on the monthly and yearly values and store the values in to separate arrays
var monthly_plans=[]; and var yearly_plans=[]
So, how do I do this?
I have used the js split()
function before but on a very basic level.
More From » arrays