Skip to content

unctionjs/exceptKey

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Unknown, ISC licenses found

Licenses found

Unknown
LICENSE
ISC
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published