Returns a new array with all items where item[key] === value removed.
item[key] === value
The source array.
The key to match on.
The value to match.
removeArrayItemByKey([{ id: 1 }, { id: 2 }, { id: 1 }], "id", 1)// => [{ id: 2 }] Copy
removeArrayItemByKey([{ id: 1 }, { id: 2 }, { id: 1 }], "id", 1)// => [{ id: 2 }]
Returns a new array with all items where
item[key] === valueremoved.