forked from ard/ruoyi-api

艾金辉
2023-07-21 417459b4f36b090097323f0f7d3c8469e9687f66
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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;