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 | |
---|
1 | require('../../modules/web.dom-collections.iterator');
|
---|
2 | var values = require('../array/virtual/values');
|
---|
3 | var classof = require('../../internals/classof');
|
---|
4 | var ArrayPrototype = Array.prototype;
|
---|
5 |
|
---|
6 | var DOMIterables = {
|
---|
7 | DOMTokenList: true,
|
---|
8 | NodeList: true
|
---|
9 | };
|
---|
10 |
|
---|
11 | module.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.