Skip to content

Hex.trimLeft

Trims leading zeros from a Hex.Hex value.

Imports

Named
import { Hex } from 'ox'

Examples

import { Hex } from 'ox'
 
Hex.trimLeft('0x00000000deadbeef')
'0xdeadbeef'

Definition

function trimLeft(
  value: Hex,
): trimLeft.ReturnType

Source: src/core/Hex.ts

Parameters

value

  • Type: Hex

The Hex.Hex value to trim.

Return Type

The trimmed Hex.Hex value.

trimLeft.ReturnType