title: JavaScript Trivia: Function to combine two Array sets?
body: <p>I have two Arrays of object, one has a set of options like this (the left side of the equation):</p>
  
  <pre><code>Id   Value
  1    Red
  2    Blue
  3    Green
  </code></pre>
  
  <p>and another like this (the right side):</p>
  
  <pre><code>Id   Value
  3    Green
  </code></pre>
  
  <p>And I need a "left join" (all left products and matching right) like this:</p>
  
  <pre><code>Id   Value   Selected
  1    Red     
  2    Blue    
  3    Green   X
  </code></pre>
  
  <p>I would like to create a method with this setup (I put [] to note arrays)</p>
  
  <pre><code>var DisplayArray[] = AllColorsArray[].join(SelectedColors[]);
  </code></pre>
  
  <p>Is there anything like these already or maybe a JQuery plug-in that does this?  It has to be common to provide a selection list with the saved options already checked.</p>
  
  <p>EDIT:</p>
  
  <p>It's really looking for simple SQL like operations on Arrays of objects, but with JavaScript.</p>