I want to change all found elements via a callback. (i.e. rewrite $ref: )
other libraries have an apply(...,callback) method, that allows to change values easily by updating the value with the callback return value.
Current behavior
In this example I want to double all found values.
Motivation
I want to change all found elements via a callback. (i.e. rewrite $ref: ) other libraries have an apply(...,callback) method, that allows to change values easily by updating the value with the callback return value.
Current behavior
In this example I want to double all found values.
This syntax is especially bad if you work with typescript and eslint no_unused_var
Desired behavior