title: Convert Uint8Array[n] into integer in node.js
body: <p>I have a variable Uint8Arr of type Uint8Array[4].</p>
  
  <pre><code>Uint8Arr[0]=0x12;
  Uint8Arr[1]=0x19;
  Uint8Arr[2]=0x21;
  Uint8Arr[3]=0x47;
  </code></pre>
  
  <p>I want to convert <code>Uint8Arr</code> into its equivalent integer which is <code>0x12192147</code> or <code>303636807</code>.</p>
  
  <p>I would like to have a function that can convert Uint8Arr[n] into its equivalent integer and return the result in decimal.</p>