Y
Hacker News
new
|
ask
|
show
|
jobs
by
debaserab2
3390 days ago
I don't see the argument that Boolean(val) "reads easier" than !! as long as you know what !! does.
1 comments
goatlover
3390 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
3389 days ago
Perhaps, but it's a primitive, not an object.
link