5 lines
122 B
JavaScript
5 lines
122 B
JavaScript
import moize from 'moize';
|
|
|
|
export default function mem(fn, opts = {}) {
|
|
return moize(fn, { ...opts, maxSize: 100 });
|
|
}
|