@unction/withoutkeys
v1.7.0
Published
Takes a enumerable that has keys and returns the same type where all the given keys don't exist
Downloads
4
Readme
@unction/withoutKeys
Array => Record<string | number | symbol, B> | Map<A, B> => Record<string | number | symbol, B> | Map<A, B>
Takes a enumerable that has keys and returns the same type where all the given keys don't exist.
withoutKeys(["a", "b", "c"])({b: 2, d: 3}) // {d: 3}
withoutKeys(["a", "b", "c"])(new Map([["b", 2], ["d", 3]])) // Map([["d", 3]]))