@unction/mergeallleft

Merges a list of iterables (of the same type) into a single iterable


Keywords
unction, functional
License
ICU
Install
npm install @unction/mergeallleft@10.8.0

Documentation

@unction/mergeAllLeft

Tests Stability Dependencies

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",}