Javascript Array toInts()
toInts()
Array.prototype.toInts = function(){ return this.map(function(val){ return parseInt(val, 10); });/*from w w w . j a v a2 s .c o m*/ };
Array.prototype.toInts = function() { return this.map(function(i){return +i;}); };