Checks if the given value is null.

Syntax

TypeScript
import { isNull } from '@opentf/std';

isNull(val: unknown): val is null

Examples

TypeScript
isNull(null) //=> true

isNull(undefined) //=> false
Last updated on
Edit this page