@unction/of
v5.13.0
Published
Creates a functor based on a value and optional key
Downloads
377
Readme
@unction/of
A => B => Record<string | number | symbol, C> | Map<D, C> => Record<string | number | symbol, B> | Map<B, A>
Creates a enumerable based on a value and optional key.
of("aaa")("bbb")({}) // {aaa: "bbb"}
of(null)("bbb")([]) // ["bbb"]