141
rated 0 times
[
145]
[
4]
/ answers: 1 / hits: 28258
/ 13 Years ago, mon, november 14, 2011, 12:00:00
I have an array Arr1 = [1,1,2,2,3,8,4,6]
.
How can I split it into two arrays based on the odd/even-ness of element positions?
subArr1 = [1,2,3,4]
subArr2 = [1,2,8,6]
More From » coffeescript