DEV Community

loading...

Discussion on: Convert an array of strings to numbers

Collapse
itachiuchiha profile image
Itachi Uchiha

You'll get NaN in following scenarios:

Empty string -> ''

String with space ' '

function definition => () => {}

undefined value => undefined

null value => null