The object to inspect.
The object of property predicates to conform to.
Returns true
if object
conforms, else false
.
5.12.0
const object = { 'a': 1, 'b': 2 }
conformsTo(object, { 'b': function(n) { return n > 1 } })
// => true
conformsTo(object, { 'b': function(n) { return n > 2 } })
// => false
Checks if
object
conforms tosource
by invoking the predicate properties ofsource
with the corresponding property values ofobject
.Note: This method is equivalent to
conforms
whensource
is partially applied.