Version 1
[yaffs-website] / node_modules / grunt-uncss / node_modules / lodash / _setToPairs.js
diff --git a/node_modules/grunt-uncss/node_modules/lodash/_setToPairs.js b/node_modules/grunt-uncss/node_modules/lodash/_setToPairs.js
new file mode 100644 (file)
index 0000000..36ad37a
--- /dev/null
@@ -0,0 +1,18 @@
+/**
+ * Converts `set` to its value-value pairs.
+ *
+ * @private
+ * @param {Object} set The set to convert.
+ * @returns {Array} Returns the value-value pairs.
+ */
+function setToPairs(set) {
+  var index = -1,
+      result = Array(set.size);
+
+  set.forEach(function(value) {
+    result[++index] = [value, value];
+  });
+  return result;
+}
+
+module.exports = setToPairs;