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:
28
react-app/node_modules/lodash/internal/pickByArray.js
generated
vendored
Normal file
28
react-app/node_modules/lodash/internal/pickByArray.js
generated
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
var toObject = require('./toObject');
|
||||
|
||||
/**
|
||||
* A specialized version of `_.pick` which picks `object` properties specified
|
||||
* by `props`.
|
||||
*
|
||||
* @private
|
||||
* @param {Object} object The source object.
|
||||
* @param {string[]} props The property names to pick.
|
||||
* @returns {Object} Returns the new object.
|
||||
*/
|
||||
function pickByArray(object, props) {
|
||||
object = toObject(object);
|
||||
|
||||
var index = -1,
|
||||
length = props.length,
|
||||
result = {};
|
||||
|
||||
while (++index < length) {
|
||||
var key = props[index];
|
||||
if (key in object) {
|
||||
result[key] = object[key];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
module.exports = pickByArray;
|
Reference in New Issue
Block a user