Security update for Core, with self-updated composer
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _basePickBy.js
1 var baseForIn = require('./_baseForIn');
2
3 /**
4  * The base implementation of  `_.pickBy` without support for iteratee shorthands.
5  *
6  * @private
7  * @param {Object} object The source object.
8  * @param {Function} predicate The function invoked per property.
9  * @returns {Object} Returns the new object.
10  */
11 function basePickBy(object, predicate) {
12   var result = {};
13   baseForIn(object, function(value, key) {
14     if (predicate(value, key)) {
15       result[key] = value;
16     }
17   });
18   return result;
19 }
20
21 module.exports = basePickBy;