Skip to main content
Module

x/polkadot/mod.ts>util.hexHasPrefix

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

Examples

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

console.log('has prefix', hexHasPrefix('0x1234')); // => true

Parameters

optional
value: string | null

Returns

value is HexString