Skip to content

hexConcat

hexConcat(items): string

Defined in: utils/bytes.ts:535

Concatenates values together into one hex string

Parameters

items

readonly BytesLike[]

the items to concatenate together

Returns

string

a single hex string including all of the items to be concatenated

Example

hexConcat([[2, 4, 0, 1], 9, '0x2934', '0x3947']);
// '0x020400010929343947'