Update memoize.md

This commit is contained in:
atomiks
2018-01-02 14:29:08 +11:00
committed by GitHub
parent c7cca9bad2
commit 116f68d89d

View File

@ -2,7 +2,7 @@
Returns the memoized (cached) function.
Create an empty cache using by instantiating a new `Map` object.
Create an empty cache by instantiating a new `Map` object.
Return a function which takes a single argument to be supplied to the memoized function by first checking if the function's output for that specific input value is already cached, or store and return it if not.
Allow access to the `cache` by setting it as a property on the returned function.