title: javascript - Array.map with String.trim
body: <p>Why doesn't the following work? (Chrome, so no issues with Arrays.map missing)</p>
  
  <pre><code>[" a ", "b", " c", "d "].map(String.prototype.trim)
  
  TypeError: String.prototype.trim called on null or undefined
  </code></pre>