7 lines
164 B
JavaScript
7 lines
164 B
JavaScript
import moize from 'moize';
|
|
|
|
window._moize = moize;
|
|
|
|
export default function mem(fn, opts = {}) {
|
|
return moize(fn, { ...opts, maxSize: 50, isDeepEqual: true });
|
|
}
|