_.isMatch

isMatch_.isMatch(object, properties)
Tells you if the keys and values in properties are contained in object.

1
2
3
var stooge = {name: 'moe', age: 32};
_.isMatch(stooge, {age: 32});
=> true
doc_Underscore
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.