Sha256: 3daf5131fa6734e94fac5f660ae9e8e999599e60f4ba5a2edfe37138b344bdc7
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 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/values'); var ArrayPrototype = Array.prototype; var DOMIterables = { DOMTokenList: true, NodeList: true }; module.exports = function (it) { var own = it.values; return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.values) || hasOwn(DOMIterables, classof(it)) ? method : own; };
Version data entries
4 entries across 4 versions & 1 rubygems