Skip to content

Hex.trimRight

Trims trailing zeros from a Hex.Hex value.

Imports

Named
import { Hex } from 'ox'

Examples

import { Hex } from 'ox'
 
Hex.trimRight('0xdeadbeef00000000')
'0xdeadbeef'

Definition

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

Source: src/core/Hex.ts

Parameters

value

  • Type: Hex

The Hex.Hex value to trim.

Return Type

The trimmed Hex.Hex value.

trimRight.ReturnType