mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
# add dist
This commit is contained in:
32
ng2-components/ng2-alfresco-documentslist/dist/node_modules/lodash/matchesProperty.js
generated
vendored
Normal file
32
ng2-components/ng2-alfresco-documentslist/dist/node_modules/lodash/matchesProperty.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
var baseClone = require('./_baseClone'),
|
||||
baseMatchesProperty = require('./_baseMatchesProperty');
|
||||
|
||||
/**
|
||||
* Creates a function that performs a partial deep comparison between the
|
||||
* value at `path` of a given object to `srcValue`, returning `true` if the
|
||||
* object value is equivalent, else `false`.
|
||||
*
|
||||
* **Note:** This method supports comparing the same values as `_.isEqual`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 3.2.0
|
||||
* @category Util
|
||||
* @param {Array|string} path The path of the property to get.
|
||||
* @param {*} srcValue The value to match.
|
||||
* @returns {Function} Returns the new function.
|
||||
* @example
|
||||
*
|
||||
* var users = [
|
||||
* { 'user': 'barney' },
|
||||
* { 'user': 'fred' }
|
||||
* ];
|
||||
*
|
||||
* _.find(users, _.matchesProperty('user', 'fred'));
|
||||
* // => { 'user': 'fred' }
|
||||
*/
|
||||
function matchesProperty(path, srcValue) {
|
||||
return baseMatchesProperty(path, baseClone(srcValue, true));
|
||||
}
|
||||
|
||||
module.exports = matchesProperty;
|
Reference in New Issue
Block a user