You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
440 B
10 lines
440 B
var call = require('../internals/function-call');
|
|
var anObject = require('../internals/an-object');
|
|
var getIteratorDirect = require('../internals/get-iterator-direct');
|
|
var getIteratorMethod = require('../internals/get-iterator-method');
|
|
|
|
module.exports = function (obj) {
|
|
var object = anObject(obj);
|
|
var method = getIteratorMethod(object);
|
|
return getIteratorDirect(anObject(method !== undefined ? call(method, object) : object));
|
|
};
|
|
|