题解 | #删除数组第一个元素#
{"css":"","js":"function curtail(arr) {\nconst newArr=[]\nfor(let i=0;i<arr.length;i++){\n newArr[i]=arr[i]\n}\n newArr.shift()\n return newArr\n}","html":"","libs":[]}
{"css":"","js":"function curtail(arr) {\nconst newArr=[]\nfor(let i=0;i<arr.length;i++){\n newArr[i]=arr[i]\n}\n newArr.shift()\n return newArr\n}","html":"","libs":[]}
相关推荐