let obj ={
a :true,
b:[]
}
if(obj.a && obj.b){
console.log(324)
}
//324 obj.b
//
obj.b => [] => Boolean([]) => true
//
[]===[]
//false
* *
< H2 > add: how can I modify it if I want to implement the usual function that only executes 1 for true? This array is sometimes a non-empty array < / H2 >* *