Follow

public isWhatever = (something): boolean => {
if (expression involving this) {
return true;
} else {
return false;
}
};

This is the kind of code I get from the most senior member of this team. It's not even 10 AM and I'm already fed up.

@baerd Also : don't use arrow functions as methods, because of how "this" is bound.

Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!