<!DOCTYPE html>
<html>
    <head>
        <meta charset=utf-8>
    </head>
    <body>
    	
        <script type="text/javascript">
            const _delete = (array,index) => {
                // 补全代码
                var arr = array.filter((val, i) => {
                    if (i !== index) return val
                })
                return arr
            }
        </script>
    </body>
</html>