"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.once = void 0;
exports.once = (fn) => {
    let called = false;
    let ret = null;
    return (...args) => {
        if (called) {
            return ret;
        }
        called = true;
        ret = fn(...args);
        return ret;
    };
};
