You're super right, that's simpler :) the double !! is just coercion to boolean and not needed. Sometimes I like to do that if I need some kind of boolean variable like isSpa but it's not needed here :)
Thanks for the heads up!
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.
You're super right, that's simpler :) the double
!!
is just coercion to boolean and not needed. Sometimes I like to do that if I need some kind of boolean variable like isSpa but it's not needed here :)Thanks for the heads up!