@me2em/crypto
    Preparing search index...

    Function concat

    • Concatenates multiple Uint8Array instances into a single array.

      Parameters

      • ...arrays: Uint8Array[]

        The byte arrays to concatenate.

      Returns Uint8Array

      A new Uint8Array containing all bytes in order.

      const a = new Uint8Array([1, 2]);
      const b = new Uint8Array([3, 4]);
      const c = concat(a, b);
      // Uint8Array [ 1, 2, 3, 4 ]