title: How do I get an item from a JavaScript object?
body: <p>How do I get an item from a JavaScript object:</p>
  
  <pre><code>var items = [
    {
      ITEM:1,
      AMOUNT:10
    },
    {
      ITEM:2,
      AMOUNT:20
    }
  ];
  </code></pre>
  
  <p>I want to be able to do something like this:</p>
  
  <pre><code>$(items).filter(ITEM == 1).AMOUNT;
  </code></pre>
  
  <p>... which would return <code>10</code>.</p>