Function isInstance

  • Determine whether an item is an instance of Result.

    Type Parameters

    • T
    • E

    Parameters

    • item: unknown

      The item to check.

    Returns item is Result<T, E>