Answers for "javascript check if true force to be boolean"

0

javascript check if true force to be boolean

var obj = {a: 1}
var to_bool_way1 = Boolean(obj) // true
var to_bool_way2 = !!obj // true
Posted by: Guest on May-04-2021

Code answers related to "javascript check if true force to be boolean"

Code answers related to "Javascript"

Browse Popular Code Answers by Language