X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FassocGet.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FassocGet.js;h=da4f6ed37e7f65119384d3cd6de3184f29188d33;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website 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 index 000000000..da4f6ed37 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/internal/assocGet.js @@ -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;