Make function, which calling result will be cached within diInit callback
const fun = diOnce(n => n + 1)fun(1) // 2fun(8) // again 2, because it's cached Copy
const fun = diOnce(n => n + 1)fun(1) // 2fun(8) // again 2, because it's cached
Make function, which calling result will be cached within diInit callback
Example