Function matchStrings

  • Given strings as arguments, returns a Type Guard that checks if the given value is strictly equal to one of the given primitives.

    Type Parameters

    • Args extends readonly string[]

    Parameters

    • Rest ...args: readonly [Args]

    Returns MatchInFn<string, Args>

Generated using TypeDoc