_.isMatch

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

var stooge = {name: 'moe', age: 32};
_.isMatch(stooge, {age: 32});
=> true
doc_Underscore
2016-04-09 09:05:27
Comments
Leave a Comment

Please login to continue.