Best practice for returning “nothing” from a ternary expression if falsy?

后端 未结 0 1970
执笔经年
执笔经年 2021-01-26 10:33

This is the ternary condition spec from mdn:

condition ? exprIfTrue : exprIfFalse

Often I find myself wanting to check if something is true, but I jus

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