Takaro - v0.4.11
    Preparing search index...

    Function matches

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

    • Type Parameters

      • T
      • V

      Parameters

      • source: T

      Returns (value: V) => boolean

      _.matches