Sha256: 357e319a04d8fe4764f0a21983728b66c34e877882c560c92747125a8f425048

Contents?: true

Size: 624 Bytes

Versions: 4

Compression:

Stored size: 624 Bytes

Contents

'use strict';
var classof = require('../../internals/classof');
var hasOwn = require('../../internals/has-own-property');
var isPrototypeOf = require('../../internals/object-is-prototype-of');
var method = require('../array/virtual/for-each');
require('../../modules/web.dom-collections.for-each');

var ArrayPrototype = Array.prototype;

var DOMIterables = {
  DOMTokenList: true,
  NodeList: true
};

module.exports = function (it) {
  var own = it.forEach;
  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.forEach)
    || hasOwn(DOMIterables, classof(it)) ? method : own;
};

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-0.26.10 packages/webpacker/node_modules/core-js/stable/instance/for-each.js
decidim-0.26.9 packages/webpacker/node_modules/core-js/stable/instance/for-each.js
decidim-0.28.0.rc5 packages/webpacker/node_modules/core-js/stable/instance/for-each.js
decidim-0.28.0.rc4 packages/webpacker/node_modules/core-js/stable/instance/for-each.js