aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/toIterator.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lodash/toIterator.js')
-rw-r--r--node_modules/lodash/toIterator.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/node_modules/lodash/toIterator.js b/node_modules/lodash/toIterator.js
new file mode 100644
index 0000000..beeed5d
--- /dev/null
+++ b/node_modules/lodash/toIterator.js
@@ -0,0 +1,23 @@
+/**
+ * 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;