Y
Hacker News
new
|
ask
|
show
|
jobs
by
WalterSear
3225 days ago
What it looks like in other languages is only minorly relevant to its obviousness and readability.
1 comments
debaserab2
3225 days ago
I don't see the argument that Boolean(val) "reads easier" than !! as long as you know what !! does.
link
goatlover
3225 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
3224 days ago
Perhaps, but it's a primitive, not an object.
link