Map passes 3 parameter to the mapped function, the second one being an index, and parseInt accepts a second optional argument as radix.
be explicit:
["1","2","3"].map(function(x){return parseInt(x,10)})
Map passes 3 parameter to the mapped function, the second one being an index, and parseInt accepts a second optional argument as radix.
be explicit:
Javascript isn't the problem here.