MCPcopy Create free account
hub / github.com/ctrlplusb/react-injectables / without

Function without

src/utils.js:42–43  ·  view source on GitHub ↗
(toRemove)

Source from the content-addressed store, hash-verified

40
41// :: a -> [a] -> [a]
42export const without = (toRemove) => (point) =>
43 filter((x) => !Object.is(x, toRemove))(point);
44
45// :: [a] -> [a] -> [a]
46export const withoutAll = (toRemove) => (point) =>

Callers 3

removeRegistrationMethod · 0.90
removeInjectableMethod · 0.90
removeInjectorMethod · 0.90

Calls 1

filterFunction · 0.85

Tested by

no test coverage detected