import { u8aToU8a } from "https://deno.land/x/polkadot@0.2.17/util/u8a/toU8a.ts";
Examples
import { u8aToU8a } from 'https://deno.land/x/polkadot@0.2.17/util/mod.ts';
u8aToU8a(new Uint8Array([0x12, 0x34]); // => Uint8Array([0x12, 0x34])
u8aToU8a(0x1234); // => Uint8Array([0x12, 0x34])
Parameters
optional
value: U8aLike | null