Skip to content

isUndefined() function ​

Checks if the given value is undefined.

Signature:

typescript
isUndefined: <T>(input: T) => input is T & undefined

Example ​

ts
isUndefined(undefined); // true
isUndefined(2); // false

Open Source Code

Released under the Apache-2.0 License.