Javascript logical “!==” operator?

前端 未结 6 1945
无人共我
无人共我 2021-02-01 12:37

I am getting back into web development, and have been trying to go over the nuances of jscript recently. I was pouring through the source of the THREEx extension library built o

6条回答
  •  南笙
    南笙 (楼主)
    2021-02-01 12:55

    !==

    This is the strict not equal operator and only returns a value of true if both the operands are not equal and/or not of the same type. The following examples return a Boolean true:

    a !== b
    a !== "2"
    4 !== '4' 
    

提交回复
热议问题