All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash.toIterator.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
/**
 * 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;
}

module.exports = wrapperToIterator;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy