I just came across the following line of code in one of the Windows Store Apps samples.
if (that.assets[asset].object === null || !!!that.assets[asset].object.canPlayType) {
It uses a triple exclamation mark syntax. I've done some testing (and I'm pretty sure I missed something), and the result is always the same a single !
. I assumed it was somewhat equivalent to ===
and !==
...
Can anyone explain what the !!!
syntax means?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…