<!DOCTYPE html>

<html>

<head>

<meta charset=utf-8>

</head>

<body>

<script type="text/javascript">

const _delete = (array,index) => {

// 补全代码

if (!array || array.length <= 0) return []

const result = []

const len = array.length

for (let i = 0; i < len; i ++) {

if (i !== index) {

result.push(array[i])

}

}

return result

}

</script>

</body>

</html>