PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@polkadot/util/cjs/hex

Просмотр файла: hasPrefix.d.ts

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 '@polkadot/util';
 *
 * console.log('has prefix', hexHasPrefix('0x1234')); // => true
 * ```
 */
export declare function hexHasPrefix(value?: string | null): value is HexString;

Выполнить команду


Для локальной разработки. Не используйте в интернете!