Instead of having different functions for each data structure (e. g. mapArray, mapRecord, asyncMap...), it would be helpful to have one function which could support all iterable data structures (in short, just one map).
Most data structures have Symbol.iterator, but maybe it is a good idea to avoid using it to increase browser support.
Following iterables should be supported:
Suggested iterable functions:
Suggested additional helpers:
Instead of having different functions for each data structure (e. g.
mapArray,mapRecord,asyncMap...), it would be helpful to have one function which could support all iterable data structures (in short, just onemap).Following iterables should be supported:
Suggested iterable functions:
Suggested additional helpers: