UNPKG

ts-arima-forecast

Version:

TypeScript library for ARIMA, SARIMA (soon), and SARIMAX (soon) forecasting

17 lines 466 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.memoize = void 0; const memoize = (fn) => { const cache = new Map(); return ((...args) => { const key = JSON.stringify(args); if (cache.has(key)) { return cache.get(key); } const result = fn(...args); cache.set(key, result); return result; }); }; exports.memoize = memoize; //# sourceMappingURL=helpers.js.map