clickable-json
Version:
Interactive JSON and JSON CRDT viewer and editor
19 lines • 449 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.invokeFirstOnly = void 0;
const invokeFirstOnly = () => {
let invoked = false;
return (fn) => {
if (invoked)
return;
invoked = true;
try {
fn();
}
finally {
invoked = false;
}
};
};
exports.invokeFirstOnly = invokeFirstOnly;
//# sourceMappingURL=invokeFirstOnly.js.map
;