Also known as yoda conditions [1]. Some linters have options to enforce non-usage as a best practice [2].<p>[1] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Yoda_conditions" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Yoda_conditions</a><p>[2] <a href="http:&#x2F;&#x2F;eslint.org&#x2F;docs&#x2F;rules&#x2F;yoda" rel="nofollow">http:&#x2F;&#x2F;eslint.org&#x2F;docs&#x2F;rules&#x2F;yoda</a>