title: How can I loop through an array to pull out an Id number javascript
body: <p>I have a list that is coming from the db and creates a list of checkbox inputs. When the user clicks on the checkbox it will populate only that item. What I want to do to begin with is check the status of the checkbox. If it's checked I want to console.log the systemId and the operator name to compare to make sure they match.
  here is my code:</p>
  
  <pre><code>        $(".wellProducer").click(function(){
              if(this.checked == true){
                  console.log(wells["SystemId"]);
                  console.log(wellProducers["Operator"]);
              }
          });
  </code></pre>
  
  <p>The .wellProducer is the class of the input checkbox. What I have populating right now is all the systemId's and operators, but I want to compare them to see if they match.</p>