title: Why does JS array not include a peek() function?
body: <p>JavaScript arrays include functions that make it handle like a stack out of the box.  Refer to <code>push(...)</code> and <code>pop()</code>.  If the spec/developers of the language went to the trouble to make arrays stack-like in this way with push/pop functions, why was <code>peek()</code> omitted (forcing us instead to always need to index the final element of the array, e.g. <code>arr[arr.length-1]</code>)?</p>
  
  <p>I realize that this may be a subjective matter, but I was hoping someone knew something about decisions made/published regarding the language spec that my Google Fu was too weak to unearth.</p>