SyntaxFix
Write A Post
Hire A Developer
Questions
var i = [NaN, 1,2,3]; var j = i.map(i =>{ return isNaN(i) ? 0 : i}); console.log(j)