Today I tried google closure. I noticed that the numbers in the conditions he puts in first place:

Original

A.keyLis.blockCtrlAlt.fined(e.keyCode) !== -1 && e.ctrlKey 

After closure

 -1 !== A.keyLis.blockCtrlAlt.fined(a.keyCode) && a.ctrlKey 

The next question is how does this optimize the code?

    1 answer 1

    No, this is not an optimization. This is Yoda Style . Once he helped to avoid mistakes.

    If instead of a == 1 write a = 1 , then it will be a bit not what is expected, but many old compilers / interpreters skipped. And here is 1 = a immediately error.

    Now, many compilers / interpreters are able to "see" a code of the form a=1 in conditions and swear. As for me, now it’s not necessary to write.