1. <script>
    2. var arr = [{name:"cheng"},{name:"li"},{name:"zhang"}];
    3. var o = arr[0];
    4. var obj = {name:"cheng"}
    5. var newArr = arr.filter(item=>item!==o);
    6. console.log(newArr)
    7. console.log(o);
    8. console.log(obj);
    9. console.log(o==obj);
    10. </script>

    image.png