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

x/polkadot/util/mod.ts>isHex

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

Examples

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

isHex('0x1234'); // => true
isHex('0x1234', 8); // => false

Parameters

value: unknown
optional
bitLength = [UNSUPPORTED]
optional
ignoreLength: boolean

Returns

value is HexString