0.1.4 • Published 5 years ago

@aicacia/memoize v0.1.4

Weekly downloads
1
License
(MIT OR Apache-2....
Repository
gitlab
Last release
5 years ago

ts-memoize

memoize

import { memoize } from "@aicacia/memoize";

const fac = memoize((x: number): number => (x === 0 ? 1 : x * fac(x - 1)));

fac(5); // 120
// this call will just return the previous result since the arguments are the same
fac(5); // 120
0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

6 years ago

0.1.0

6 years ago