json-logic
json-logic copied to clipboard
Can't use "max" on array stored at "var"
This doesn't give the expected result:
let logic = {
"max": {
"var": "myarray"
}
}
let data = {
"myarray": [
1,
2,
3
]
}
JSONLogic.apply(logic,data)
result: `null`
This example is working properly in at least the ruby bindings