Sha256: 06385b2dc7a6437a8898d073db10da8f9ae209b81e57f1438c0112bd370cc592
Contents?: true
Size: 623 Bytes
Versions: 4
Compression:
Stored size: 623 Bytes
Contents
'use strict'; require('../../modules/web.dom-collections.iterator'); 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/entries'); var ArrayPrototype = Array.prototype; var DOMIterables = { DOMTokenList: true, NodeList: true }; module.exports = function (it) { var own = it.entries; return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.entries) || hasOwn(DOMIterables, classof(it)) ? method : own; };
Version data entries
4 entries across 4 versions & 1 rubygems