/**
* Creates a function that memoizes the result of func. If resolver is provided it determines the cache key for
* storing the result based on the arguments provided to the memoized function. By default, the first argument
* provided to the memoized function is used as the cache key.
*
* @param func The function to have its output memoized.
* @param resolver The function to resolve the cache key.
* @return Returns the new memoizing function.
*/
export function memoize(func: Function, resolver?: Function): Function {
throw new Error("Not implemented");
}
Created with CodeSandbox
Dosant/memoize-interview-starter
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Created with CodeSandbox
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published