Is there a compact way to increase observed KnockoutJS with high expressiveness, so that the code gain is in readability?
I would like to avoid this syntax:
var counter = ko.observable(0);
Instead, I need a more expressive syntax like:
counter.increment();
This type of API must also take an argument to determine the value of the increment:
counter.increment(10); counter.increment(-1);
I did not find anything similar in the official documentation, and other similar questions here only report standard syntax, which, in my opinion, is extremely difficult to read.
source share