简洁~

const _delete = (array,index) => {
    return array.filter((n,i) => i!=index)
}