• 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.

  • Type Parameters

    • T
    • V

    Parameters

    Returns (value: V) => boolean

    _.matchesProperty