📝Memoization permalink by Oleksii Shmalko I can use WeakMap in js to memoize object -> computation resultsWeakRef can be used to memoize non-object keyshttps://v8.dev/features/weak-references As of [2019-12-28 Sat] it is a stage 3 proposal and is not supported in any browser.