|
|
|
|
|
by adammacleod
5317 days ago
|
|
I'd be careful with the last Memoize example, if current_date changes then the JavaScript function at least will return the old value still. Memoize only works if your function is one to one (one set of inputs gives the same outputs), and you cache the result of the function for each value of the input. |
|