- forEach<T>(array, iteratee): T
Type Parameters
- T extends readonly any[] | Nil
Parameters
- array: T
- iteratee: ArrayIteratee<NonNullable<T>[number], boolean | void>
Returns T
- forEach<T>(object, iteratee): T
Parameters
- object: T
- iteratee: ObjectIteratee<NonNullable<T>, boolean | void>
Returns T
Iterates over elements of
collection
and invokesiteratee
for each element. Iteratee functions may exit iteration early by explicitly returningfalse
.Contribution to minified bundle size, when it is the only function imported: