Function bytesToHex

Convert byte array to hex string. Uses built-in function, when available.

bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123'
  • Parameters

    • bytes: Uint8Array

    Returns string

MMNEPVFCICPMFPCPTTAAATR