Re:Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in...
by bemmu on Friday June 21, 2019 @12:06PM
(#20243746)
If you want to get terse
[ Parent
| on HN ]
Re:Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in...
by plausibilities on Friday June 21, 2019 @02:46PM
(#20245271)
If I didn't care about rounding I'd just use a primitive constructor
['1', '7', '11'].map(Number)