Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/polkadot/util/is/error.ts>isError

Package publishing for deno.land/x/polkadot
Go to Latest
function isError
import { isError } from "https://deno.land/x/polkadot@0.2.11/util/is/error.ts";

Examples

import { isError } from 'https://deno.land/x/polkadot@0.2.11/util/mod.ts';

console.log('isError', isError(new Error('message'))); // => true

Parameters

value: unknown

Returns

value is Error