Why [‘1’, ‘2’, ‘10’, ‘10’].map(parseInt) returns [1, NaN, 2, 3] in Javascript

Why [‘1’, ‘2’, ‘10’, ‘10’].map(parseInt) returns [1, NaN, 2, 3] in Javascript

2 years ago
Anonymous $dy9SWuvIkX