title: How to convert last 4 bytes in an array to an integer?
body: <p>If I have an <code>Uint8Array</code> array in JavaScript, how would I get the last four bytes and then convert that to an int? Using C# I would do something like this:</p>
  
  <pre><code>int count = BitConverter.ToInt32(array, array.Length - 4);
  </code></pre>
  
  <p>Is there an inequivalent way to do this using JavaScript?</p>