• Make a parser that matches and returns a character if it is present in a given character samples string/array.

    Tokens expected to be individual characters/graphemes.

    Type Parameters

    • TOptions

    Parameters

    • chars: string | string[]

      An array (or a string) of all acceptable characters.

    Returns Parser<string, TOptions, string>

Generated using TypeDoc