funny-memoize
v1.0.2
Published
Simple modules for functional programming, done for fun.
Downloads
1
Maintainers
Readme
memoize
Simple modules for functional programming, done for fun.
Usage
import memoize from 'funny-memoize'
const memoizedExpensiveFn = memoize(expensiveFn, 2)
memoizedExpensiveFn(1) // Stores result in cache.
memoizedExpensiveFn(1) // Retrieves stored result.
License
The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.