Files
common/docs/util/modules/_u8a_concat_.md
T
2019-02-14 23:13:52 +00:00

736 B

Functions

u8aConcat

▸ u8aConcat(..._list: Array<Uint8Array | string>): Uint8Array

Defined in u8a/concat.ts:24

name: u8aConcat

summary: Creates a concatenated Uint8Array from the inputs.

description: Concatenates the input arrays into a single UInt8Array.

example:

import { u8aConcat } from '@polkadot/util';

u8aConcat(
  new Uint8Array([1, 2, 3]),
  new Uint8Array([4, 5, 6])
); // [1, 2, 3, 4, 5, 6]

Parameters:

Name Type
Rest _list Array<Uint8Array

Returns: Uint8Array