title: How do I check in JavaScript if a value exists at a certain array index?
body: <p>Will this work for testing whether a value at position <code>index</code> exists or not, or is there a better way:</p>
  <pre><code>if(arrayName[index]==&quot;&quot;){
       // do stuff
  }
  </code></pre>