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
Checks if the given value is null.
import { isNull } from '@opentf/std'; isNull(val: unknown): val is null
isNull(null) //=> true isNull(undefined) //=> false