• Creates a function that performs a deep comparison between a given object and source, returning true if the given object has equivalent property values, else false.

    Note: This method supports comparing arrays, booleans, Date objects, numbers, Object objects, regexes, and strings. Objects are compared by their own, not inherited, enumerable properties. For comparing a single own or inherited property value see _.matchesProperty.

    Type Parameters

    • T

    Parameters

    • source: T

      The object of property values to match.

    Returns ((value: any) => boolean)

    Returns the new function.

      • (value): boolean
      • Parameters

        • value: any

        Returns boolean

  • Type Parameters

    • T
    • V

    Parameters

    • source: T

    Returns ((value: V) => boolean)

      • (value): boolean
      • Parameters

        • value: V

        Returns boolean

    _.matches