UNPKG

statsig-js

Version:

Statsig JavaScript client SDK for single user environments.

15 lines (14 loc) 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); // @ts-nocheck function Polyfill() { Promise.prototype.finally = Promise.prototype.finally || { finally: function (fn) { var onFinally = function (callback) { return Promise.resolve(fn()).then(callback); }; return this.then(function (result) { return onFinally(function () { return result; }); }, function (reason) { return onFinally(function () { return Promise.reject(reason); }); }); }, }.finally; } exports.default = Polyfill;