JavaScript 1.6 Array.map() and Array.filter() not working with built in functions as arguments
- by bucabay
This works fine:
["655971", "2343", "343"].map(function(x) { return parseInt(x) }) // [655971, 2343, 343]
But this doesnt:
["655971", "2343", "343"].map(parseInt) // [655971, NaN, NaN]
The same happens for Array.filter()
What am I missing here?