I want to cache each output of a function. That means once it's calculated for a particular input, the next call should take it from the cache.
If fresh calculation it can be calculated again.
Can _.memoize
do that?
I want to cache each output of a function. That means once it's calculated for a particular input, the next call should take it from the cache.
If fresh calculation it can be calculated again.
Can _.memoize
do that?