irurzo
04/02/2020, 3:10 PMNumber.isNaN()
? I get an error saying TypeError: Cannot find function isNaN in object function Number() { [native code for Number.Number, arity=1] }
then I thought, well I’ll use typeof
but came across that in javascript (don’t know if in any other language is the same haha) `typeof NaN == Number`so, any ideas, what Im just trying to do is on a reduce just trying to get the total of, but some cases the value of the variable is a a dash '-'
battk
04/02/2020, 3:15 PMbattk
04/02/2020, 3:18 PMirurzo
04/02/2020, 3:19 PMNumber.isNan()
and as it worked on my jsbin haha, good to know!stalbert
04/02/2020, 6:38 PM