Version 1
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / _assocHas.js
diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/_assocHas.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/_assocHas.js
new file mode 100644 (file)
index 0000000..a74bd39
--- /dev/null
@@ -0,0 +1,15 @@
+var assocIndexOf = require('./_assocIndexOf');
+
+/**
+ * Checks if an associative array value for `key` exists.
+ *
+ * @private
+ * @param {Array} array The array to query.
+ * @param {string} key The key of the entry to check.
+ * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
+ */
+function assocHas(array, key) {
+  return assocIndexOf(array, key) > -1;
+}
+
+module.exports = assocHas;