From 34057992c88d7264793becaaf2f2944595c7ea27 Mon Sep 17 00:00:00 2001 From: Parsha Pourkhomami Date: Sat, 1 Sep 2012 12:39:51 -0700 Subject: [PATCH] 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. --- lib/async.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/async.js b/lib/async.js index 7cc4f5eac..b708bc940 100644 --- a/lib/async.js +++ b/lib/async.js @@ -679,6 +679,7 @@ }])); } }; + memoized.memo = memo; memoized.unmemoized = fn; return memoized; };