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

x/polkadot/util/mod.ts>isChildClass

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

Examples

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

console.log('isChildClass', isChildClass(BN, BN); // => true
console.log('isChildClass', isChildClass(BN, Uint8Array); // => false

Type Parameters

P extends Constructor

Parameters

Parent: P
optional
Child: Constructor | null | unknown

Returns

Child is P