Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / globule / node_modules / lodash / _basePick.js
1 var basePickBy = require('./_basePickBy');
2
3 /**
4  * The base implementation of `_.pick` without support for individual
5  * property identifiers.
6  *
7  * @private
8  * @param {Object} object The source object.
9  * @param {string[]} props The property identifiers to pick.
10  * @returns {Object} Returns the new object.
11  */
12 function basePick(object, props) {
13   object = Object(object);
14   return basePickBy(object, props, function(value, key) {
15     return key in object;
16   });
17 }
18
19 module.exports = basePick;