Sha256: a493fd4e13881db3f66e3d05ee241ab99e0c8d40e1035dc5a896899ebb2be958

Contents?: true

Size: 614 Bytes

Versions: 4

Compression:

Stored size: 614 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/keys');

var ArrayPrototype = Array.prototype;

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

module.exports = function (it) {
  var own = it.keys;
  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.keys)
    || 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/keys.js
decidim-0.26.9 packages/webpacker/node_modules/core-js/stable/instance/keys.js
decidim-0.28.0.rc5 packages/webpacker/node_modules/core-js/stable/instance/keys.js
decidim-0.28.0.rc4 packages/webpacker/node_modules/core-js/stable/instance/keys.js