wallet-core/node_modules/lodash/_basePick.js
Florian Dold bd65bb67e2 incrementally verify denoms
The denominations are not stored in a separate object store.
2016-11-16 02:00:31 +01:00

21 lines
528 B
JavaScript

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) {
object = Object(object);
return basePickBy(object, paths, function(value, path) {
return hasIn(object, path);
});
}
module.exports = basePick;