Skip to content

Problems with arrays stored in vars #49

@sampaio96

Description

@sampaio96
jsonLogic.apply(
  {"+": {"var": "array"}}, // Logic
  {"array": [1,2,3]}   // Data
);

returns 1 instead of 6

jsonLogic.apply(
  {"max": {"var": "array"}}, // Logic
  {"array": [1,2,3]}   // Data
);

returns null
(Already pointed out in #19 (comment))

Tested on jsonlogic.com.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions