Pebble App Framework: Phone API
    Preparing search index...

    Function matchesKeyword

    • Whether any keyword matches the title, by the rules keywordMatcher keeps. A caller checking many titles against one list prepares it once with keywordMatcher instead.

      Parameters

      • title: string

        The event's title.

      • keywords: string | readonly string[]

        The list as the wearer typed it, or a list of keywords.

      Returns boolean

      True when a keyword matches. An empty list matches nothing.