SyntaxFix
Write A Post
Hire A Developer
Questions
lodash also has a remove method
var myArr = [ { name: "john", age: 23 }, { name: "john", age: 43 }, { name: "jim", age: 101 }, { name: "bob", age: 67 } ]; var onlyJohn = myArr.remove( person => { return person.name == "john" })