Version 1
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / toIterator.js
diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/toIterator.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/toIterator.js
new file mode 100644 (file)
index 0000000..c50c4d1
--- /dev/null
@@ -0,0 +1,22 @@
+/**
+ * Enables the wrapper to be iterable.
+ *
+ * @name Symbol.iterator
+ * @memberOf _
+ * @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;