main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
570 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | 'use strict';
|
---|
| 2 | var classof = require('../internals/classof');
|
---|
| 3 | var hasOwn = require('../internals/has-own-property');
|
---|
| 4 | var isNullOrUndefined = require('../internals/is-null-or-undefined');
|
---|
| 5 | var wellKnownSymbol = require('../internals/well-known-symbol');
|
---|
| 6 | var Iterators = require('../internals/iterators');
|
---|
| 7 |
|
---|
| 8 | var ITERATOR = wellKnownSymbol('iterator');
|
---|
| 9 | var $Object = Object;
|
---|
| 10 |
|
---|
| 11 | module.exports = function (it) {
|
---|
| 12 | if (isNullOrUndefined(it)) return false;
|
---|
| 13 | var O = $Object(it);
|
---|
| 14 | return O[ITERATOR] !== undefined
|
---|
| 15 | || '@@iterator' in O
|
---|
| 16 | || hasOwn(Iterators, classof(O));
|
---|
| 17 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.