@unction/withoutkeys
TypeScript icon, indicating that this package has built-in type declarations

1.7.0 • Public • Published

@unction/withoutKeys

Tests Stability Dependencies

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]]))

Readme

Keywords

Package Sidebar

Install

npm i @unction/withoutkeys

Weekly Downloads

0

Version

1.7.0

License

SEE LICENSE IN LICENSE

Unpacked Size

19.9 kB

Total Files

7

Last publish

Collaborators

  • krainboltgreene