UNPKG

@xylabs/hex

Version:

Base functionality used throughout XY Labs TypeScript/JavaScript libraries

6 lines (4 loc) 187 B
import { hexFromHexString } from './from/index.ts' export const isHexZero = (value?: string) => { return value ? BigInt(hexFromHexString(value, { prefix: true })) === 0n : undefined }