Function isOfType

  • Type guard function that checks if a value is of a certain type.

    Type Parameters

    • T

      The type to check for.

    Parameters

    • value: unknown

      The value to check the type of.

    Returns value is T

    A boolean indicating whether the value is of the specified type.