Skip to content

Conversation

@sergeevik
Copy link

@sergeevik sergeevik commented Jan 25, 2026

Change 'each' signature for correct work by docs. (#767)
Docs say: https://docs.jsonata.org/programming

Invocation chaining
value ~> $funcA ~> $funcB
is equivalent to
$funcB($funcA(value))

fix it for 'each' method
now
$each([123, 321], function($v) {$v}) and [123, 321] ~> $each(?, function($v) {$v}) are equivalent

Signed-off-by: Sergeev Viktor sergeevviktor017@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant