Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 34057992c88d7264793becaaf2f2944595c7ea27 1 parent 8696792
@parshap authored
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;
};
Please sign in to comment.
Something went wrong with that request. Please try again.