题解 | #新数组#
新数组
https://www.nowcoder.com/practice/bee781a51bc944bbad20f3c2ca798890
filter 高效一行代码
const _delete = (array,index) => { // 补全代码 if (index < 0) return array; return array.filter((v, i) => i != index); }
新数组
https://www.nowcoder.com/practice/bee781a51bc944bbad20f3c2ca798890
const _delete = (array,index) => { // 补全代码 if (index < 0) return array; return array.filter((v, i) => i != index); }
相关推荐