download
raw
360 Bytes
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = onlyOnce;
function onlyOnce(fn) {
return function (...args) {
if (fn === null) throw new Error("Callback was already called.");
var callFn = fn;
fn = null;
callFn.apply(this, args);
};
}
module.exports = exports.default;

Xet Storage Details

Size:
360 Bytes
·
Xet hash:
73dffcd0bee75dbab19490ebdf80edf2848702a6bd47768ffe862db7a2b93416

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.