Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _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;