题解 | #新数组#
新数组
http://www.nowcoder.com/practice/bee781a51bc944bbad20f3c2ca798890
简洁~
const _delete = (array,index) => {
return array.filter((n,i) => i!=index)
}
新数组
http://www.nowcoder.com/practice/bee781a51bc944bbad20f3c2ca798890
简洁~
const _delete = (array,index) => {
return array.filter((n,i) => i!=index)
}
相关推荐