Bytes.trimRight
Trims trailing zeros from a Bytes.Bytes value.
Imports
Named
import { Bytes } from 'ox'Examples
import { Bytes } from 'ox'
 
Bytes.trimRight(Bytes.from([1, 2, 3, 0, 0, 0, 0]))
Uint8Array([1, 2, 3])Definition
function trimRight(
  value: Bytes,
): BytesSource: src/core/Bytes.ts
Parameters
value
- Type: 
Bytes 
Bytes.Bytes value.
Return Type
Trimmed Bytes.Bytes value.
Bytes

