Util
Conforms

_.conforms(source)

Creates a function that invokes the predicate properties of source with the corresponding property values of a given object, returning true if all predicates return truthy, else false.

Note: The created function is equivalent to _.conformsTo with source partially applied.

Arguments

source (Object): The object of property predicates to conform to.

Returns

(Function): Returns the new spec function.

Example

Deep