decko icon indicating copy to clipboard operation
decko copied to clipboard

Don't think @memorize fit any case.

Open mrdulin opened this issue 8 years ago • 1 comments

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.

mrdulin avatar Nov 21 '17 15:11 mrdulin

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

developit avatar Dec 14 '17 01:12 developit