Remove specific item that equal data or finded by finder from source.
A factory, data is second param, return a function just like Array.find.
Array.find
removeItem([1, '2', true, { a: 1 }], 0) => [1, '2', true, { a: 1 }] removeItem([1, '2', true, { a: 1 }], 1) => ['2', true, { a: 1 }]
removeItem([{ a: 1 }, { a: 2 }, { a: 3 }, { a: 4 }], { a: 3 }, data => item => data.a === item.a) => [{ a: 1 }, { a: 2 }, { a: 4 }]
Generated using TypeDoc
Remove specific item that equal data or finded by finder from source.