main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 2 weeks ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
496 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | var call = require('../internals/function-call');
|
---|
3 | var anObject = require('../internals/an-object');
|
---|
4 | var getIteratorDirect = require('../internals/get-iterator-direct');
|
---|
5 | var getIteratorMethod = require('../internals/get-iterator-method');
|
---|
6 |
|
---|
7 | module.exports = function (obj, stringHandling) {
|
---|
8 | if (!stringHandling || typeof obj !== 'string') anObject(obj);
|
---|
9 | var method = getIteratorMethod(obj);
|
---|
10 | return getIteratorDirect(anObject(method !== undefined ? call(method, obj) : obj));
|
---|
11 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.