Version 1
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / assocHas.js
diff --git a/node_modules/uncss/node_modules/lodash/internal/assocHas.js b/node_modules/uncss/node_modules/lodash/internal/assocHas.js
new file mode 100644 (file)
index 0000000..fe90911
--- /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;