What is the most effective way of returning the boolean version of a primitive value?

后端 未结 0 1610
名媛妹妹
名媛妹妹 2021-02-06 00:56

I recently started working with Javascript, and I\'ve seen a couple of ways getting the boolean version of a primitive value:

const value = \'12\' // could be und         


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