We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Neat project. It doesn't seem to cache if a named function is used as a argument to the memoized function. Is this possible with WeakMap/Map?
The text was updated successfully, but these errors were encountered:
It should work for named functions.
function caller( fn ) { return fn(); } function rand() { return Math.random(); } const mem = memoize( caller ); mem( rand ) === mem( rand ); // true
Can you post an example of what you're trying that doesn't seem to work?
Sorry, something went wrong.
No branches or pull requests
Neat project. It doesn't seem to cache if a named function is used as a argument to the memoized function. Is this possible with WeakMap/Map?
The text was updated successfully, but these errors were encountered: