@unction/mergeallright
v10.13.0
Published
Merges a list of iterables (of the same type) into a single iterable
Downloads
18
Readme
@unction/mergeAllRight
Array<Array | Set | Record<string | number | symbol, B> | Map<B, A> | string> => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string
Merges a list of enumerables (of the same type) into a single enumerable.
mergeAllRight([["0"], ["1"], ["2"]]) // ["0", "1", "2"]
mergeAllRight([{aaa: "aaa"}, {bbb: "bbb"}, {ccc: "ccc"}]) // {aaa: "aaa", bbb: "bbb", ccc: "ccc",}