Skip to content

hexDataLength

hexDataLength(data): number | null

Defined in: utils/bytes.ts:481

Gets the length of data represented as a hex string

BytesLike

the data to check the length of

number | null

the length of the data

hexDataLength([2, 4, 0, 1]);
// 4
hexDataLength('0x3925');
// 2