IsUndefined<T>: [undefined] extends [T]
    ? true
    : false

Type Parameters

  • T

    Type to check

Description

Checks if T is undefined

Example

type Result = IsUndefined<undefined>
// ^? type Result = true

Generated using TypeDoc