There was an error while loading. Please reload this page.
1 parent df74f64 commit 301438eCopy full SHA for 301438e
src/lib.js
@@ -22,13 +22,13 @@ var uint8ToHex = function (ubyte) {
22
* @returns {string} The hex string representation
23
*/
24
var uint8ArrayToHex = function (buf) {
25
- var out = [];
+ var out = '';
26
27
for (var i = 0; i < buf.length; i++) {
28
- out.push(uint8ToHex(buf[i]));
+ out += uint8ToHex(buf[i]);
29
}
30
31
- return out.join('');
+ return out;
32
};
33
34
/**
tests/__mock__/samples.js
0 commit comments