• Creates a function that compares the property value of path on a given object to value.

    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.

    Type Parameters

    • T

    Parameters

    • path: PropertyPath

      The path of the property to get.

    • srcValue: T

      The value to match.

    Returns ((value: any) => boolean)

    Returns the new function.

      • (value): boolean
      • Parameters

        • value: any

        Returns boolean

  • Type Parameters

    • T
    • V

    Parameters

    • path: PropertyPath
    • srcValue: T

    Returns ((value: V) => boolean)

      • (value): boolean
      • Parameters

        • value: V

        Returns boolean

    _.matchesProperty