DEV Community


Discussion on: Why using Yoda conditions you should probably not be

scottjoe profile image
Scott Williams

Could the entire situation be avoided by using an editor linting plugin to detect assignment within conditions?

greg0ire profile image
Grégoire Paris Author

It very much could, this is a great idea if you don't need assignments within conditions.