Module

x/lodash_es/mod.ts>conformsTo

lodash for deno use
Latest
function conformsTo
import { conformsTo } from "https://dotland.deno.dev/x/lodash_es@v0.0.2/mod.ts";

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.

Examples

var object = { 'a': 1, 'b': 2 };

_.conformsTo(object, { 'b': function(n) { return n > 1; } }); // => true

_.conformsTo(object, { 'b': function(n) { return n > 2; } }); // => false

Parameters

object

The object to inspect.

source

The object of property predicates to conform to.