Yoda conditions not

JavaScript pattern