@tetcoin/util
Version:
A collection of useful utilities for @tetcoin
19 lines (18 loc) • 453 B
TypeScript
/**
* @name u8aConcat
* @summary Creates a concatenated Uint8Array from the inputs.
* @description
* Concatenates the input arrays into a single `UInt8Array`.
* @example
* <BR>
*
* ```javascript
* import { u8aConcat } from '@tetcoin/util';
*
* u8aConcat(
* new Uint8Array([1, 2, 3]),
* new Uint8Array([4, 5, 6])
* ); // [1, 2, 3, 4, 5, 6]
* ```
*/
export default function u8aConcat(..._list: Array<Uint8Array | string>): Uint8Array;