How to check if a value is null or undefined in JavaScript (ES2020)

前端 未结 0 786
执笔经年
执笔经年 2021-02-05 10:06

Is there a shorter way to checking if a value in JavaScript is null or undefined than this using new ES10 features like Nullish Coalescing?



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题