DEV Community

Discussion on: Code Smell 145 - Short Circuit Hack

Collapse
 
feliciousity profile image
Felicia Ann Kelley

It has to be a boolean, boolean is how the data is first made.

Thread Thread
 
kentaro_tanaka_5b2893f1d1 profile image
Kentaro Tanaka

The condition essentially evaluates to a boolean value, determining whether the nested property user.foo.bar exists and is truthy.

I am also engineer. Can we discuss more details?