Icard/angular-clarity-master(work.../node_modules/lodash-es/_basePick.js

20 lines
499 B
JavaScript
Raw Normal View History

2024-07-16 14:55:36 +00:00
import basePickBy from './_basePickBy.js';
import hasIn from './hasIn.js';
/**
* 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);
});
}
export default basePick;