source: trip-planner-front/node_modules/lodash/_basePick.js@ ceaed42

Last change on this file since ceaed42 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 501 bytes
Line 
1var basePickBy = require('./_basePickBy'),
2 hasIn = require('./hasIn');
3
4/**
5 * The base implementation of `_.pick` without support for individual
6 * property identifiers.
7 *
8 * @private
9 * @param {Object} object The source object.
10 * @param {string[]} paths The property paths to pick.
11 * @returns {Object} Returns the new object.
12 */
13function basePick(object, paths) {
14 return basePickBy(object, paths, function(value, path) {
15 return hasIn(object, path);
16 });
17}
18
19module.exports = basePick;
Note: See TracBrowser for help on using the repository browser.