/** * Memoize function with multiply arguments of any type. * Use it when you need to cache lookup only for last result (like reselect). * * @param {Function} fn * @param {Function} isEqual - checks equality for two values * @returns {Function} * @example * const addFlag = obj => ({...obj, flag: true }); * const memoize = memoizeOnce(addFlag)); * memoize(1); // from addFlag call * memoize(1); // from cache * memoize(1,2) // from addFlag call, * memoize(1) // from addFlag call, cache was flashed on previous step */ declare const _default: (fn: T, isEqual?: (a: any, b: any) => boolean) => T; export default _default;