UNPKG

nerdamer-ts

Version:

javascript light-weight symbolic math expression evaluator

17 lines 652 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parens = void 0; /* Although parens is not a "real" function it is important in some cases when the * symbol must carry parenthesis. Once set you don't have to worry about it anymore * as the parser will get rid of it at the first opportunity */ const Settings_1 = require("../../../Settings"); const Symbol_1 = require("../../../Types/Symbol"); function parens(symbol) { if (Settings_1.Settings.PARSE2NUMBER) { return symbol; } return (0, Symbol_1.symfunction)('parens', [symbol]); } exports.parens = parens; //# sourceMappingURL=parens.js.map