mirror of
https://github.com/musix-org/musix-oss
synced 2024-11-10 11:20:19 +00:00
12 lines
343 B
JavaScript
12 lines
343 B
JavaScript
|
var classof = require('../internals/classof');
|
||
|
var Iterators = require('../internals/iterators');
|
||
|
var wellKnownSymbol = require('../internals/well-known-symbol');
|
||
|
|
||
|
var ITERATOR = wellKnownSymbol('iterator');
|
||
|
|
||
|
module.exports = function (it) {
|
||
|
if (it != undefined) return it[ITERATOR]
|
||
|
|| it['@@iterator']
|
||
|
|| Iterators[classof(it)];
|
||
|
};
|