LarpixClient/electron/node_modules/native-run/dist/utils/fn.js
olcxja 5da5c2afe2
All checks were successful
Android Build / publish (push) Successful in 31s
Linux Build / publish (push) Successful in 55s
fix gitignore again
2026-05-10 16:36:35 +02:00

16 lines
347 B
JavaScript

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