DEV Community

Discussion on: Clean your condition ๐Ÿงผ

Collapse
mikenatsu profile image
MikeNatsu

For shorthands like if(!!something), why cant we just do if (something)???

Collapse
elukuro profile image
Heru Hartanto Author

Yes you could, the only difference is !!something will return boolean