1 var get = require('./get');
4 * The base implementation of `_.at` without support for individual paths.
7 * @param {Object} object The object to iterate over.
8 * @param {string[]} paths The property paths to pick.
9 * @returns {Array} Returns the picked elements.
11 function baseAt(object, paths) {
13 length = paths.length,
14 result = Array(length),
15 skip = object == null;
17 while (++index < length) {
18 result[index] = skip ? undefined : get(object, paths[index]);
23 module.exports = baseAt;