Commit
·
ed8d376
1
Parent(s):
2445c98
Update index.js
Browse files
index.js
CHANGED
|
@@ -8,7 +8,7 @@ function hexFromBytes(arr) {
|
|
| 8 |
if (globalThis.Buffer) {
|
| 9 |
return globalThis.Buffer.from(arr).toString("hex");
|
| 10 |
} else {
|
| 11 |
-
const bin
|
| 12 |
arr.forEach((byte) => {
|
| 13 |
bin.push(byte.toString(16).padStart(2, "0"));
|
| 14 |
});
|
|
|
|
| 8 |
if (globalThis.Buffer) {
|
| 9 |
return globalThis.Buffer.from(arr).toString("hex");
|
| 10 |
} else {
|
| 11 |
+
const bin = [];
|
| 12 |
arr.forEach((byte) => {
|
| 13 |
bin.push(byte.toString(16).padStart(2, "0"));
|
| 14 |
});
|