title: Decode binary QR Code data with javascript
body: <p>I have an array with 0/1 for white and black (I can change this as needed) of a QR code. Each part of the array is a Y line of the QR Code.</p>
  
  <p>I need to write something that can decode that QR Code data into something usable, it can be many different types of QR codes so I need to be able to detect which type it is as well.</p>
  
  <p>Can this be done with pure javascript? I can't run JQuery.</p>
  
  <p>it looks like this (top two of 40ish lines), but I'm generating it from a string with a for loop so I can turn it into anything else.</p>
  
  <pre><code>1 1 1 1 1 1 1 0 1 1 0 0 0 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1
  1 0 0 0 0 0 1 0 1 1 0 0 0 1 0 1 0 0 1 1 1 1 0 1 0 0 0 0 1 1 1 1 0 1 1 1 0 0 1 1 1 0 1 0 0 0 0 0 1 
  </code></pre>