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

    Note: This method supports comparing the same values as _.isEqual.


    • object: object

      The object to inspect.

    • source: object

      The object of property values to match.

    Returns boolean

    Returns true if object is a match, else false.


    var object = { 'user': 'fred', 'age': 40 };

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

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

Generated using TypeDoc