summaryrefslogtreecommitdiff
path: root/lib/memoize.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memoize.js')
-rw-r--r--lib/memoize.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/memoize.js b/lib/memoize.js
index 60c1f54..5b06cff 100644
--- a/lib/memoize.js
+++ b/lib/memoize.js
@@ -30,6 +30,7 @@ function has(obj, key) {
* @param {Function} hasher - An optional function for generating a custom hash
* for storing results. It has all the arguments applied to it apart from the
* callback, and must be synchronous.
+ * @returns {Function} a memoized version of `fn`
* @example
*
* var slow_fn = function(name, callback) {