dotfiles/.vscode/extensions/vscodevim.vim-0.1.10/node_modules/lodash/_basePick.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

19 lines
495 B
JavaScript

var basePickBy = require('./_basePickBy');
/**
* The base implementation of `_.pick` without support for individual
* property identifiers.
*
* @private
* @param {Object} object The source object.
* @param {string[]} props The property identifiers to pick.
* @returns {Object} Returns the new object.
*/
function basePick(object, props) {
object = Object(object);
return basePickBy(object, props, function(value, key) {
return key in object;
});
}
module.exports = basePick;