slice array from N to last element

前端 未结 7 2043
你的背包
你的背包 2020-12-29 01:11

How to make this transformation?

[\"a\",\"b\",\"c\",\"d\",\"e\"] // => [\"c\", \"d\", \"e\"]

I was thinking that slice can

7条回答
  •  清歌不尽
    2020-12-29 01:58

    var arr = ["a", "b", "c", "d", "e"];
    arr.splice(0,2);
    console.log(arr);
    Please use above code. May be this you need.

提交回复
热议问题