source: trip-planner-front/node_modules/core-js/stable/instance/values.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 531 bytes
Line 
1require('../../modules/web.dom-collections.iterator');
2var values = require('../array/virtual/values');
3var classof = require('../../internals/classof');
4var ArrayPrototype = Array.prototype;
5
6var DOMIterables = {
7 DOMTokenList: true,
8 NodeList: true
9};
10
11module.exports = function (it) {
12 var own = it.values;
13 return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.values)
14 // eslint-disable-next-line no-prototype-builtins -- safe
15 || DOMIterables.hasOwnProperty(classof(it)) ? values : own;
16};
Note: See TracBrowser for help on using the repository browser.