GT2/GT2-iOS/node_modules/lodash-es/toIterator.js

24 lines
401 B
JavaScript
Raw Normal View History

2018-02-12 17:26:06 +00:00
/**
* Enables the wrapper to be iterable.
*
* @name Symbol.iterator
* @memberOf _
* @since 4.0.0
* @category Seq
* @returns {Object} Returns the wrapper object.
* @example
*
* var wrapped = _([1, 2]);
*
* wrapped[Symbol.iterator]() === wrapped;
* // => true
*
* Array.from(wrapped);
* // => [1, 2]
*/
function wrapperToIterator() {
return this;
}
export default wrapperToIterator;