mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-12-24 03:08:13 +03:00
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 });
|
|
}
|