@bates-solutions/payments-core API Reference - v0.2.0
    Preparing search index...

    Function toHex

    • Bytes as lowercase hex, two characters per byte.

      Parameters

      • bytes: ArrayBuffer | Uint8Array<ArrayBufferLike>

      Returns string

      toHex(new Uint8Array([0, 15, 255])); // '000fff'