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

12.13.0 • Public • Published

@unction/exceptKey

Tests Stability Dependencies

B => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string

Takes a key and a keyed functor, returning the keyed functor without the key given.

exceptKey(1)([1, 2, 3]) // [1, 3]
exceptKey(1)("abc") // "ac"
exceptKey("aaa")({aaa: "aaa", bbb: "bbb", ccc: "ccc"}) // {bbb: "bbb", ccc: "ccc"}
exceptKey("aaa")(new Map([["aaa", "aaa"], ["bbb", "bbb"], ["ccc", "ccc"]])) // new Map([["bbb", "bbb"], ["ccc", "ccc"]])

Readme

Keywords

Package Sidebar

Install

npm i @unction/exceptkey

Weekly Downloads

0

Version

12.13.0

License

SEE LICENSE IN LICENSE

Unpacked Size

21.9 kB

Total Files

8

Last publish

Collaborators

  • krainboltgreene