-
Notifications
You must be signed in to change notification settings - Fork 144
Open
Description
I didn't notice whether you had or planned to develop functions that included arrays that contained objects.
So for example if wanted to return true if there is an apple pie in group of pies:
var rules = { "and" : [
{"<" : [ { "var" : "temp" }, 110 ]},
{"==" : [ { "var" : "pies.filling" }, "apple" ] }
] };
var data = { "temp" : 100, "pies" : [{ "filling" : "apple" }, { "filling" : "cherry" }]};
jsonLogic.apply(rules, data);
// true
Metadata
Metadata
Assignees
Labels
No labels