0
> "1.1.0".split(".").map(parseInt)
(3) [1, NaN, 0]

> "1.1.0".split(".").map(parseFloat)
(3) [1, 1, 0]

Happens in both browser and NodeJS. Can anyone explain this behavior?

wuxiekeji
  • 1,602
  • 2
  • 13
  • 20

0 Answers0