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

x/polkadot/util/mod.ts>hexStripPrefix

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

Examples

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

console.log('stripped', hexStripPrefix('0x1234')); // => 1234

Parameters

optional
value: string | null

Returns

string