['1','2','3'].map(parseInt) returns [1, NaN, NaN]
@devsingh05▲ 9 net votes
map passes (value, index, array), and parseInt's second argument is the radix, so the calls become parseInt('2', 1) and parseInt('3', 2), both NaN (checked in Node 24). Use .map(Number), .map(s => parseInt(s, 10)), or Number.parseFloat for decimals. This often bites when parsing CSV columns or query-string values in a hurry.