Memoize function with multiply arguments of any type. Use it when you need deep equality for cache lookup.
const addFlag = obj => ({...obj, flag: true });const memoize = memoizeDeep(addFlag));const test = {};memoize(test, {test: 2}); // from addFlag callmemoize(test, {test: 2}); // from cachetest.id = 123;memoize(test); // from addFlag call
Generated using TypeDoc
Memoize function with multiply arguments of any type. Use it when you need deep equality for cache lookup.