mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
react app
This commit is contained in:
22
react-app/node_modules/lodash/internal/pickByCallback.js
generated
vendored
Normal file
22
react-app/node_modules/lodash/internal/pickByCallback.js
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
var baseForIn = require('./baseForIn');
|
||||
|
||||
/**
|
||||
* A specialized version of `_.pick` which picks `object` properties `predicate`
|
||||
* returns truthy for.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The source object.
|
||||
* @param {Function} predicate The function invoked per iteration.
|
||||
* @returns {Object} Returns the new object.
|
||||
*/
|
||||
function pickByCallback(object, predicate) {
|
||||
var result = {};
|
||||
baseForIn(object, function(value, key, object) {
|
||||
if (predicate(value, key, object)) {
|
||||
result[key] = value;
|
||||
}
|
||||
});
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = pickByCallback;
|
Reference in New Issue
Block a user