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

x/polkadot/util/mod.ts>isInstanceOf

Package publishing for deno.land/x/polkadot
Go to Latest
function isInstanceOf
import { isInstanceOf } from "https://deno.land/x/polkadot@0.2.19/util/mod.ts";

Examples

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

console.log('isInstanceOf', isInstanceOf(new Array(0), Array)); // => true

Parameters

value: unknown
Clazz: Function

Returns

boolean