Skip to content
Browse files

Expose memoized function's memos

Add a `memo` property to the return value of `async.memoize` (the
memoized function) to expose the collection of already-calculated
values.
  • Loading branch information...
1 parent 8696792 commit 34057992c88d7264793becaaf2f2944595c7ea27 @parshap committed
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/async.js
View
1 lib/async.js
@@ -679,6 +679,7 @@
}]));
}
};
+ memoized.memo = memo;
memoized.unmemoized = fn;
return memoized;
};

0 comments on commit 3405799

Please sign in to comment.
Something went wrong with that request. Please try again.