Version 1
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _getMatchData.js
diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/_getMatchData.js b/node_modules/grunt-legacy-util/node_modules/lodash/_getMatchData.js
new file mode 100644 (file)
index 0000000..a1456d2
--- /dev/null
@@ -0,0 +1,21 @@
+var isStrictComparable = require('./_isStrictComparable'),
+    toPairs = require('./toPairs');
+
+/**
+ * Gets the property names, values, and compare flags of `object`.
+ *
+ * @private
+ * @param {Object} object The object to query.
+ * @returns {Array} Returns the match data of `object`.
+ */
+function getMatchData(object) {
+  var result = toPairs(object),
+      length = result.length;
+
+  while (length--) {
+    result[length][2] = isStrictComparable(result[length][1]);
+  }
+  return result;
+}
+
+module.exports = getMatchData;