1.0.1 • Published 5 years ago
@tyimarques/memoize v1.0.1
Memoize
Caches function output with separated cache for each input signature
Table of Contents
Installation
npm i @tyimarques/memoize
Usage
import Memoize from "@tyimarques/memoize";
const callback = () => true;
const callbackMemoized = new Memoize(callback);
callbackMemoized();
callbackMemoized();//cached result