title: How do I create a Hash from an Array using the Prototype JavaScript framewor?
body: <p>I've an Array <code>['red', 'green', 'blue']</code></p>
  
  <p>I want to create a new Hash from this Array, the result should be</p>
  
  <pre><code>{'red':true, 'green':true, 'blue':true}
  </code></pre>
  
  <p>What is the best way to achieve that goal using Prototype? </p>