Update memoize.md
This commit is contained in:
@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user