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

x/polkadot/util/hex/index.ts>hexHasPrefix

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

Examples

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

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

Parameters

optional
value: string | null

Returns

value is HexString