Closed Fil closed 5 years ago
I think !!ccw
is more standard than !!+ccw
. Any reason not to use the former?
It was for the case of "0".
!!
makes "0" true-ish!!+
makes "0" false-ish"0" is currently triggering the bug, which means we're sure that no-one uses it, and either solution is fine. Removing the + will save one byte :)
But "0"
is a truthy value, and thus should be interpreted as true rather than false.
if ("0") {
console.log("it’s true");
}
Rebased and merged to master.
(fixes #21)