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

    Function isUnion

    • Checks if a value satisfies any of the provided type guards.

      Type Parameters

      • G extends readonly Guard<unknown>[]

      Parameters

      • value: unknown

        The value to check

      • guards: G

        Array of type guards to validate against

      Returns value is Union<G>

      True if the value satisfies at least one guard; false otherwise