title: Parsing every element of an array as an integer
body: <p>I have a string which I need to split into an array and then perform mathematical functions on each element of the array.</p>
  
  <p>Currently I am doing something like this. (Actually, I am doing nothing like this, but this is a very simple example to explain my question!</p>
  
  <pre><code>var stringBits = theString.split('/');
  
  var result = parseInt(stringBits[0]) + parseInt(stringBits[3]) / parseInt(stringBits[1]);
  </code></pre>
  
  <p>What I would like to know is if there is a way I can convert every element of an array into a certain type that would stop me from having to explicitly parse it each time.</p>