3 ms·
I doubt that anyone who hasn't written JS will recognize !! as an idiom for converting to boolean.
by TheCoelacanth 5y ago
I doubt that anyone who hasn't written JS will recognize !! as an idiom for converting to boolean.
- tyingq 5y agoThat kind of type coercion predates JS. perl -e 'print !!"whee"' 1 php -r 'print !!"whee";' 1 awk 'BEGIN {print !!"whee"}' 1