title: Why doesn't Uint8Array.toString('hex') return hex?
body: <p>Given this (based on <a href="https://stackoverflow.com/a/50868276/1461850">another answer</a>):</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>const fromHexString = hexString =&gt; new Uint8Array(hexString.match(/.{1,2}/g).map(byte =&gt; parseInt(byte, 16)));
  
  console.log(fromHexString('a0e30c9e46d8f973f4082d79fce1fb46b1c199bb047bb3545c85b545f7a1650a').toString('hex'))
  
  //expected "a0e30c9e46d8f973f4082d79fce1fb46b1c199bb047bb3545c85b545f7a1650a"
  
  //get "160,227,12,158,70,216,249,115,244,8,45,121,252,225,251,70,177,193,153,187,4,123,179,84,92,133,181,69,247,161,101,10"</code></pre>
  </div>
  </div>
  </p>
  <p>Why does it not return as hex?</p>
  <p>Edit, the source of my confusion. I'm using the <a href="https://github.com/datproject/sdk#apiexamples" rel="nofollow noreferrer">hypersdk library</a>. This allows for <code>.toString('hex')</code> pattern.</p>
  <p>When I switch to <a href="https://beakerbrowser.com/" rel="nofollow noreferrer">beaker</a> I can no longer use it.</p>
  <p>Edit 2:</p>
  <p>I think my confusion arose because what I was using was based on node.js's <code>Buffer</code> object: <a href="https://nodejs.org/api/buffer.html#buffer_buf_tostring_encoding_start_end" rel="nofollow noreferrer">https://nodejs.org/api/buffer.html#buffer_buf_tostring_encoding_start_end</a></p>
  <p>This was browserified using hypersdk in such a way that the buffer is represented as a <code>TypedArray</code> object with the <code>toString</code> prototype method overwritten to match the <code>Buffer</code> version.</p>