slice array from N to last element

前端 未结 7 2015
你的背包
你的背包 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 02:02
    ["a","b","c","d","e"].slice(-3) => ["c","d","e"]
    
    0 讨论(0)
提交回复
热议问题