题解 | #新数组#
新数组
https://www.nowcoder.com/practice/bee781a51bc944bbad20f3c2ca798890
const _delete = (array,index) => { // 补全代码 var arr = []; for(let i = 0; i < array.length; i++) { if(i != index) { arr[arr.length] = array[i]; } } return arr; }
新数组
https://www.nowcoder.com/practice/bee781a51bc944bbad20f3c2ca798890
const _delete = (array,index) => { // 补全代码 var arr = []; for(let i = 0; i < array.length; i++) { if(i != index) { arr[arr.length] = array[i]; } } return arr; }
相关推荐