mya/node_modules/native-run/dist/utils/fn.js
Fabio 82ccd023df
Some checks are pending
Build Android APK / build (push) Waiting to run
first commit
2026-01-21 15:08:14 +01: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;