|
@@ -7,7 +7,7 @@ import removeProp from '../object/removeProp';
|
|
|
*
|
|
|
* @param {function} fn - the function of which the result should be cached
|
|
|
* @param {number} [timeout] - the time in ms which tells the time after which the results should be deleted from the cache
|
|
|
- * @returns {function(...[*]=)}
|
|
|
+ * @returns {function}
|
|
|
*/
|
|
|
const memoize = (fn, timeout) => {
|
|
|
const cache = {};
|