Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 780 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 780 Bytes

@unction/forEach

Tests Stability Dependencies

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)({})