@metreeca/core - v0.9.18
    Preparing search index...

    Function isLiteral

    • Checks if a value matches one of the specified literal values.

      Type Parameters

      • T extends string | number | boolean

        The literal type (boolean, number, or string)

      Parameters

      • value: unknown

        The value to check

      • values: Some<T>

        A single literal value or a Some array of literal values to match against

      Returns value is T

      True if the value strictly equals one of the specified literals; false otherwise