JavaScript ['1','2','3'].map(parseInt) gives [1, NaN, NaN]
@iutsa▲ 0 net votes
map passes (value, index) and parseInt treats the index as the radix: parseInt('2', 1) and parseInt('3', 2) are NaN (Node 21). Use .map(Number) or .map((s) => parseInt(s, 10)).