@qrvey/formula-lang
Version:
QFormula support for qrvey projects
14 lines • 511 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.unshiftCustomFunctions = void 0;
function unshiftCustomFunctions(customFunctionList, expression) {
if (!expression)
return undefined;
const { value } = expression;
const customs = Array.from(customFunctionList).join('\n');
if (customs)
return `${customs}\n${value}`;
return value;
}
exports.unshiftCustomFunctions = unshiftCustomFunctions;
//# sourceMappingURL=unshiftCustomFunctions.js.map