Re:Why ['1', '7', '11'].map(parseInt) returns [1, NaN, 3] in...
by paulgb on Friday June 21, 2019 @12:03PM
(#20243713)
To someone reading the code, parseInt actually describes what your intent is while Math.round just happens to work because it coerces the type.
[ Parent
| on HN ]
There are no comments on this comment yet.