tequery
Version:
text transform query
16 lines • 448 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.funcEval = void 0;
const globals = {
window: null,
document: null,
console: null,
process: null,
};
const funcEval = (args, code) => {
const argsAll = { ...args, ...globals };
const func = Function(...Object.keys(argsAll), code);
return func(...Object.values(argsAll));
};
exports.funcEval = funcEval;
//# sourceMappingURL=utils.js.map
;