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 / _baseAt.js
1 var get = require('./get');
2
3 /**
4  * The base implementation of `_.at` without support for individual paths.
5  *
6  * @private
7  * @param {Object} object The object to iterate over.
8  * @param {string[]} paths The property paths of elements to pick.
9  * @returns {Array} Returns the new array of picked elements.
10  */
11 function baseAt(object, paths) {
12   var index = -1,
13       isNil = object == null,
14       length = paths.length,
15       result = Array(length);
16
17   while (++index < length) {
18     result[index] = isNil ? undefined : get(object, paths[index]);
19   }
20   return result;
21 }
22
23 module.exports = baseAt;