Checks if the given value is an Error (opens in a new tab).
Syntax
import { isErr } from '@opentf/std';
isErr(val: unknown): boolean;
Examples
isErr(new Error()) //=> true
isErr({}) //=> false
Checks if the given value is an Error (opens in a new tab).
import { isErr } from '@opentf/std';
isErr(val: unknown): boolean;
isErr(new Error()) //=> true
isErr({}) //=> false