DEV Community

Discussion on: What is the oddest JavaScript behavior?

Collapse
 
daniel12fsp profile image
daniel12fsp
isNaN(undefined)  // true

// Correct way

Number.isNaN(undefined) //false