Make function Dependency Injection friendly
Responded function should be called within diInit callback
const fun = di(x => x + 1)fun(1) // 2diSet(fun, x => x + 2)fun(1) // 3 Copy
const fun = di(x => x + 1)fun(1) // 2diSet(fun, x => x + 2)fun(1) // 3
Make function Dependency Injection friendly
Responded function should be called within diInit callback
Example