docs: function concatUint8Array(arrays) {
    if (arrays.length === 1) return arrays[0];
  
    let totalLength = 0;
    for (let i = 0; i < arrays.length; i++) {
      if (!isUint8Array(arrays[i])) {
        throw new Error('concatUint8Array: Data must be in the form of a Uint8Array');
      }
  
      totalLength += arrays[i].length;
    }
  
    const result = new Uint8Array(totalLength);
    let pos = 0;
    arrays.forEach(function (element) {
      result.set(element, pos);
      pos += element.length;
    });
  
    return result;
  }