mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-22 02:07:56 +00:00
17 lines
459 B
TypeScript
17 lines
459 B
TypeScript
import type { HexString } from '../types.js';
|
|
/**
|
|
* @name hexHasPrefix
|
|
* @summary Tests for the existence of a `0x` prefix.
|
|
* @description
|
|
* Checks for a valid hex input value and if the start matched `0x`
|
|
* @example
|
|
* <BR>
|
|
*
|
|
* ```javascript
|
|
* import { hexHasPrefix } from '@pezkuwi/util';
|
|
*
|
|
* console.log('has prefix', hexHasPrefix('0x1234')); // => true
|
|
* ```
|
|
*/
|
|
export declare function hexHasPrefix(value?: string | null): value is HexString;
|