mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 17:37:50 +00:00
Bump to v3.6.0.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
var baseIsEqual = require('./baseIsEqual'),
|
||||
isStrictComparable = require('./isStrictComparable');
|
||||
isStrictComparable = require('./isStrictComparable'),
|
||||
toObject = require('./toObject');
|
||||
|
||||
/**
|
||||
* The base implementation of `_.matchesProperty` which does not coerce `key`
|
||||
@@ -13,7 +14,8 @@ var baseIsEqual = require('./baseIsEqual'),
|
||||
function baseMatchesProperty(key, value) {
|
||||
if (isStrictComparable(value)) {
|
||||
return function(object) {
|
||||
return object != null && object[key] === value;
|
||||
return object != null && object[key] === value &&
|
||||
(typeof value != 'undefined' || (key in toObject(object)));
|
||||
};
|
||||
}
|
||||
return function(object) {
|
||||
|
||||
Reference in New Issue
Block a user