79619620

Date: 2025-05-13 12:15:06
Score: 1
Natty:
Report link

Create an arrow function when subscribing to the Observable, like this:

this.subscription = observable.subscribe((value) => this.update(value));

Or eliminate the function update by including the logic in the arrow function.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Martijn Dirkse