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

x/polkadot/util/is/index.ts>isBn

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

Examples

import BN from 'https://esm.sh/bn.js@5.2.1';
import { isBn } from 'https://deno.land/x/polkadot@0.2.11/util/mod.ts';

console.log('isBn', isBn(new BN(1))); // => true

Parameters

value: unknown

Returns

value is BN