Answers for "Delete object in array with filter"

0

Delete object in array with filter

let someArray = [
               {name:"Kristian", lines:"2,5,10"},
               {name:"John", lines:"1,19,26,96"},
               {name:"Kristian", lines:"2,58,160"},
               {name:"Felix", lines:"1,19,26,96"}
            ];

someArray = someArray.filter(person => person.name != 'John');
Posted by: Guest on October-18-2021

Code answers related to "Delete object in array with filter"

Browse Popular Code Answers by Language