<script> var arr = [{name:"cheng"},{name:"li"},{name:"zhang"}]; var o = arr[0]; var obj = {name:"cheng"} var newArr = arr.filter(item=>item!==o); console.log(newArr) console.log(o); console.log(obj); console.log(o==obj); </script>