Skip to content
New issue

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

Don't think @memorize fit any case. #13

Open
mrdulin opened this issue Nov 21, 2017 · 1 comment
Open

Don't think @memorize fit any case. #13

mrdulin opened this issue Nov 21, 2017 · 1 comment

Comments

@mrdulin
Copy link

mrdulin commented Nov 21, 2017

I saw you use first argument as key of cache.
What if the first argument is an object, like this:

const a = {};
const b = {c: {}}
String(a) //"[object Object]"
String(b) //"[object Object]"

Besides, can you provide any benchmark tests?
I don't think it fit any case.

@developit
Copy link
Owner

It only supports primitive values. This is the reason it is fast.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants