Hacker News new | ask | show | jobs
by debaserab2 3222 days ago
I don't see the argument that Boolean(val) "reads easier" than !! as long as you know what !! does.
1 comments

Wouldn't any programmer recognize that Boolean(val) is a cast to a True/False value that's most likely an object, given the uppercase?
Perhaps, but it's a primitive, not an object.