title: How to find index of object in array using multiple values with ES5?
body: <p>I am currently looking up objects in an array using one value, item number. However, if there happened to be multiple orders that both had the same item number on them, how could the particular object index be looked up using both values?</p>
  
  <p>Object is structured in such a manner:</p>
  
  <pre><code>var object = {
      line: line,
      poNumber: purchaseOrder,
      item: item
  };
  </code></pre>
  
  <p>Here is how I am looking the objects up now:</p>
  
  <pre><code>var posArrInd = posArr.map(function (x) { return x.item; }).indexOf(String(item));
  var po = posArr[posArrInd];
  var poLine = po.line;
  </code></pre>