DEV Community

loading...

Discussion on: Hidden power of || and &&

Collapse
patarapolw profile image
Pacharapol Withayasakpunt

Elvis cuts out not only undefined, but also null.

Still, it is much safer than short circuiting.