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


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

Documentation

@unction/mergeAllLeft

Tests Stability Dependencies

Array<EnumerableType> => EnumerableType

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