title: Check mutiple values in Array and append third value in html
body: <p>I want to check if mutiple vlaues exists in the array, and if they do, append the value of a third one- the script below obvously doesnt work, but might give a good idea on what I want to do. i only want to add this once, even if the array checks several times. </p>
  
  <p>What's the best way to do this? </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var names = {
    list: [{
        "model": "round",
        "type": "Special",
        "typedescription": "appendedvalue"
      }, {
        "model": "round",
        "type": "Special",
        "typedescription": "appendedvalue",
      }
      "model": "round",
      "type": "Special",
      "typedescription": "appendedvalue"
    },
    {
      "model": "square",
      "type": "Special",
      "typedescription": "appendedvalue"
    }]
  
  };
  
  if ($.inArray('model.round', 'type.special'
      names) !== -1) {
    $('.test').append('&lt;p&gt;' + typedescription.appendedvalue + '&lt;/p&gt;');
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="test"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>