super-memoize
v1.1.0
Published
Faster than fast, smaller than micro ... a super speed and tiny size memoizer.
Maintainers
Readme
Super-Memoize
Memoize function based on nano-memoize with some fixes and improvements.
Installation
$ npm install super-memoizeUsage
import { memoize } from 'super-memoize';
const add = memoize((a: number, b: number) => a + b);
add(1, 2); // computed
add(1, 2); // cachedDevelopment
This project uses Bun to build, test, and minify, and Biome to lint and format.
$ npm install
$ npm test
$ npm run build
$ npm run lint
$ npm run format