mightyplow 7 gadi atpakaļ
vecāks
revīzija
f582a5baf4
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/function/memoize.js

+ 1 - 1
src/function/memoize.js

@@ -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 = {};