Update matchesWith.md

This commit is contained in:
Angelos Chalaris
2018-06-23 16:36:25 +03:00
committed by GitHub
parent 770922a9d2
commit d56e750cb0

View File

@ -11,7 +11,7 @@ const matchesWith = (obj, source, fn) =>
key =>
obj.hasOwnProperty(key) && fn
? fn(obj[key], source[key], key, obj, source)
: obj[key] === source[key]
: obj[key] == source[key]
);
```