📜  javascript代码示例中的非零值

📅  最后修改于: 2022-03-11 15:03:04.207000             🧑  作者: Mango

代码示例1
[0,0,0,0,0,0,0,1234,0,0,0].reduce(function(a, b) { return a + b; }); // 1234

if(NaN === 0){
   
   return(
     
     Math.Random()
     
     
     )
   
   }