da4f6ed37e7f65119384d3cd6de3184f29188d33
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / assocGet.js
1 var assocIndexOf = require('./assocIndexOf');
2
3 /**
4  * Gets the associative array value for `key`.
5  *
6  * @private
7  * @param {Array} array The array to query.
8  * @param {string} key The key of the value to get.
9  * @returns {*} Returns the entry value.
10  */
11 function assocGet(array, key) {
12   var index = assocIndexOf(array, key);
13   return index < 0 ? undefined : array[index][1];
14 }
15
16 module.exports = assocGet;