re: Someone had to make the initial configuration and even put in time to build the rule. Perhaps digging into why they took the time to do this can pr...

using !! is less obvious at a glance

imho, depends on how used you are to seeing it. I am not used to seeing Boolean(), so it causes more friction to me than !! 😉

All in all, I think it's just another way to do something in the already rather ambiguous JS language, and I'd put it right in line with for..of vs .forEach() or the usage of semicolons. There's arguments on both sides and it comes down to the person writing the code.

Whenever I do a code-review and see either, I just skip it for that very reason, if there are no strong arguments for using exactly one of them.

code of conduct - report abuse