• 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) => boolean)

    Returns the new function.

      • (value): boolean
      • 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.

        Parameters

        • value: any

        Returns boolean

        Returns the new function.

  • Type Parameters

    • T

    • V

    Parameters

    • path: PropertyPath
    • srcValue: T

    Returns ((value) => boolean)

      • (value): boolean
      • Parameters

        • value: V

        Returns boolean

        See

        _.matchesProperty

    See

    _.matchesProperty

Generated using TypeDoc