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