Version 1
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / assocGet.js
diff --git a/node_modules/uncss/node_modules/lodash/internal/assocGet.js b/node_modules/uncss/node_modules/lodash/internal/assocGet.js
new file mode 100644 (file)
index 0000000..da4f6ed
--- /dev/null
@@ -0,0 +1,16 @@
+var assocIndexOf = require('./assocIndexOf');
+
+/**
+ * Gets the associative array value for `key`.
+ *
+ * @private
+ * @param {Array} array The array to query.
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+function assocGet(array, key) {
+  var index = assocIndexOf(array, key);
+  return index < 0 ? undefined : array[index][1];
+}
+
+module.exports = assocGet;