Son CV dans un terminal web en Javascript!
https://terminal-cv.gregandev.fr
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
501 B
20 lines
501 B
1 year ago
|
var basePickBy = require('./_basePickBy'),
|
||
|
hasIn = require('./hasIn');
|
||
|
|
||
|
/**
|
||
|
* The base implementation of `_.pick` without support for individual
|
||
|
* property identifiers.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} object The source object.
|
||
|
* @param {string[]} paths The property paths to pick.
|
||
|
* @returns {Object} Returns the new object.
|
||
|
*/
|
||
|
function basePick(object, paths) {
|
||
|
return basePickBy(object, paths, function(value, path) {
|
||
|
return hasIn(object, path);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
module.exports = basePick;
|