You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

14 lines
366 B

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.lazy = void 0;
const lazy = (factory) => {
let generated;
const fn = (...args) => {
if (!generated)
generated = factory();
return generated.apply(null, args);
};
return fn;
};
exports.lazy = lazy;
//# sourceMappingURL=lazyFunction.js.map