MCPcopy
hub / github.com/vercel/hyper / forEach

Function forEach

bin/yarn-standalone.js:17062–17065  ·  view source on GitHub ↗

* Iterates over elements of `collection` and invokes `iteratee` for each element. * The iteratee is invoked with three arguments: (value, index|key, collection). * Iteratee functions may exit iteration early by explicitly returning `false`. * * **Note:** As with other "Collection

(collection, iteratee)

Source from the content-addressed store, hash-verified

17060 * // => Logs 'a' then 'b' (iteration order is not guaranteed).
17061 */
17062 function forEach(collection, iteratee) {
17063 var func = isArray(collection) ? arrayEach : baseEach;
17064 return func(collection, getIteratee(iteratee, 3));
17065 }
17066
17067 /**
17068 * This method is like `_.forEach` except that it iterates over elements of

Callers

nothing calls this directly

Calls 2

isArrayFunction · 0.85
getIterateeFunction · 0.85

Tested by

no test coverage detected