conformsTo
Lang
since 4.14.0
Arguments
- Object The object to inspect.
- Object The object of property predicates to conform to.
Returns
boolean `true` if `object` conforms, else `false`.
Checks if object
conforms to source
by invoking the predicate
properties of source
with the corresponding property values of object
.
Note: This method is equivalent to _.conforms
when source
is
partially applied.
Example of Lodash _.conformsTo
var object = { 'a': 1, 'b': 2 };
_.conformsTo(object, { 'b': function(n) { return n > 1; } });
// => true
_.conformsTo(object, { 'b': function(n) { return n > 2; } });
// => false