@unction/mergeallleft
v10.13.0
Published
Merges a list of iterables (of the same type) into a single iterable
Downloads
44
Readme
@unction/mergeAllLeft
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.
mergeAllLeft([["0"], ["1"], ["2"]]) // ["2", "1", "0"]
mergeAllLeft([{aaa: "aaa"}, {bbb: "bbb"}, {ccc: "ccc"}]) // {aaa: "aaa", bbb: "bbb", ccc: "ccc",}