34
rated 0 times
[
36]
[
2]
/ answers: 1 / hits: 67752
/ 12 Years ago, fri, january 18, 2013, 12:00:00
How to make this transformation?
[a,b,c,d,e] // => [c, d, e]
I was thinking that slice
can do this, but..
[a,b,c,d,e].slice(2,-1) // [ 'c', 'd' ]
[a,b,c,d,e].slice(2,0) // []
More From » javascript