mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-13 07:33:09 +02:00
6 lines
142 B
TypeScript
6 lines
142 B
TypeScript
|
export function hexifyAB(buffer) {
|
||
|
return Array.from(new Uint8Array(buffer))
|
||
|
.map(item => item.toString(16).padStart(2, 0))
|
||
|
.join('');
|
||
|
}
|