import { bnToU8a } from "https://deno.land/x/polkadot@0.2.19/util/bn/toU8a.ts";
Examples
import { bnToU8a } from 'https://deno.land/x/polkadot@0.2.19/util/mod.ts';
bnToU8a(new BN(0x1234)); // => [0x12, 0x34]
Type Parameters
ExtToBn extends ToBn