We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Didn't see anyone else raising this one, so here goes
Following works
var jexl = require("jexl") jexl.addFunction("parseInt", (arg) => Number.parseInt(arg)); jexl.addFunction("isNaN", (arg) => Number.isNaN(arg)); jexl.evalSync("isNaN(parseInt(size)) == true ? 0 : parseInt(size)", { "size": "" });
Following throws the error: Token ? (question) unexpected in expression: isNaN(parseInt(size)) ?
var jexl = require("jexl") jexl.addFunction("parseInt", (arg) => Number.parseInt(arg)); jexl.addFunction("isNaN", (arg) => Number.isNaN(arg)); jexl.evalSync("isNaN(parseInt(size)) ? 0 : parseInt(size)", { "size": "" });
The text was updated successfully, but these errors were encountered:
I ran into this also, glad there is a workaround with == true, but that is kind of odd
Sorry, something went wrong.
No branches or pull requests
Didn't see anyone else raising this one, so here goes
Following works
Following throws the error: Token ? (question) unexpected in expression: isNaN(parseInt(size)) ?
The text was updated successfully, but these errors were encountered: