Sha256: ba767a163970a9f0cb8470cbe7529b82b2d1e082a043310a98d52791269f3fb6

Contents?: true

Size: 367 Bytes

Versions: 46

Compression:

Stored size: 367 Bytes

Contents

"use strict";

var forOf      = require("es6-iterator/for-of")
  , isIterable = require("es6-iterator/is-iterable")
  , iterable   = require("./validate")

  , forEach = Array.prototype.forEach;

module.exports = function (target, cb/*, thisArg*/) {
	if (isIterable(iterable(target))) forOf(target, cb, arguments[2]);
	else forEach.call(target, cb, arguments[2]);
};

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
govuk_publishing_components-16.19.0 node_modules/es5-ext/iterable/for-each.js
govuk_publishing_components-16.18.0 node_modules/es5-ext/iterable/for-each.js
govuk_publishing_components-16.17.0 node_modules/es5-ext/iterable/for-each.js
optimacms-0.4.3 spec/dummy/node_modules/es5-ext/iterable/for-each.js
optimacms-0.4.2 spec/dummy/node_modules/es5-ext/iterable/for-each.js
cortex-0.1.3 spec/dummy/node_modules/es5-ext/iterable/for-each.js