dieumercimvemba's picture
download
raw
401 Bytes
'use strict';
const internals = {
wrapped: Symbol('wrapped')
};
module.exports = function (method) {
if (method[internals.wrapped]) {
return method;
}
let once = false;
const wrappedFn = function (...args) {
if (!once) {
once = true;
method(...args);
}
};
wrappedFn[internals.wrapped] = true;
return wrappedFn;
};

Xet Storage Details

Size:
401 Bytes
·
Xet hash:
36f2a1ea36ab09f012c319a0a11e5bc0a76b673609b1ab02464ad31f73ba1239

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