Y
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
goatlover
3222 days ago
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?
link
inimino
3221 days ago
Perhaps, but it's a primitive, not an object.
link