<!DOCTYPE html>
<html>
    <head>
        <meta charset=utf-8>
    </head>
    <body>
    	
        <script type="text/javascript">
            const _delete = (array,index) => {
                // 补全代码
                let newArr = [];
                for(let i = 0; i < array.length; i++) {
                    if (array[i]!=array[index]) {
                        newArr.push(array[i])
                    }
                }
                return newArr
            }
        </script>
    </body>
</html>