Skip to main content
Module

x/lodash_es/mod.ts>isMatch

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

Performs a partial deep comparison between object and source to determine if object contains equivalent property values.

Note: This method is equivalent to _.matches when source is partially applied.

Partial comparisons will match empty array and empty object source values against any array or object value, respectively. See _.isEqual for a list of supported value comparisons.

Examples

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

_.isMatch(object, { 'b': 2 }); // => true

_.isMatch(object, { 'b': 1 }); // => false

Parameters

object

The object to inspect.

source

The object of property values to match.