@unction/foreach
v5.13.0
Published
Figure out the raw iterator function of a thing
Readme
@unction/forEach
MapperFunctionType<A, B> => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string => Array | Set | Record<string | number | symbol, B> | Map<B, A> | string
Takes any kind of enumerable and figures out the best way to iterate over it.
forEach((x) => y)([])
forEach((x) => y)(new Map)
forEach((x) => y)({})