Function matcher

  • Given the specified selector, returns a function which returns true if "this" element matches the specified selector.

    Parameters

    • selector: string

      A CSS selector string.

    Returns ((this) => boolean)

      • (this): boolean
      • Parameters

        Returns boolean