Hi I delete an object in an array using two approaches:- splice and filter.
splice code here:-
(this.myArray).splice((this.myArray).indexOf(myobjec
Array.splice - will change the Array itself. (use: myArray.splice) Array.filter - will return the filtered Array. (use: myFilteredArray = Array.filter) This is a test result on an Array of 30 small objects. I ran it on jsbence.me: