Implement cachePromise(fn) - caches async function results.
cachePromise(fn)
Run your code to see results.
Click the Run button above
By continuing to use the platform, you accept the terms of the Privacy Policy and the use of cookies.