MCPcopy
hub / github.com/palantir/plottable / forEach

Function forEach

test/blanket_mocha.js:3926–3931  ·  view source on GitHub ↗
(xs, fn)

Source from the content-addressed store, hash-verified

3924 return keys;
3925};
3926var forEach = function (xs, fn) {
3927 if (xs.forEach) return xs.forEach(fn);
3928 for (var i = 0; i < xs.length; i++) {
3929 fn.call(xs, xs[i], i, xs);
3930 }
3931};
3932
3933var isArray = Array.isArray || function (xs) {
3934 return Object.prototype.toString.call(xs) === '[object Array]';

Callers 2

blanket_mocha.jsFile · 0.85
insertHelpersFunction · 0.85

Calls 1

forEachMethod · 0.45

Tested by

no test coverage detected