题解 | #添加元素#
添加元素
http://www.nowcoder.com/practice/941bcfa5b87940869fda681c1597fd3a
{"css":"","js":"function insert(arr, item, index) {\n return [...arr.slice(0, index), item, ...arr.slice(index)]\n}","html":"","libs":[]}
添加元素
http://www.nowcoder.com/practice/941bcfa5b87940869fda681c1597fd3a
{"css":"","js":"function insert(arr, item, index) {\n return [...arr.slice(0, index), item, ...arr.slice(index)]\n}","html":"","libs":[]}
相关推荐