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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.