Sha256: b03a7918b38c43f611cb6e2ba9675a3feb694d603805eb949bbeff85394c6f2e
Contents?: true
Size: 529 Bytes
Versions: 25
Compression:
Stored size: 529 Bytes
Contents
require('../../modules/web.dom-collections.iterator'); var forEach = require('../array/virtual/for-each'); var classof = require('../../internals/classof'); var ArrayPrototype = Array.prototype; var DOMIterables = { DOMTokenList: true, NodeList: true }; module.exports = function (it) { var own = it.forEach; return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.forEach) // eslint-disable-next-line no-prototype-builtins || DOMIterables.hasOwnProperty(classof(it)) ? forEach : own; };
Version data entries
25 entries across 25 versions & 7 rubygems