Skip to content

Conversation

@AndrewLipscomb
Copy link
Contributor

#462 and #708 both reflect seemingly unexpected behaviour in how map works.

At the very least - the current behaviour has been in there for several versions now and is completely undocumented. This heavily throws new-time readers and AI tools parsing the docs.

This is my 5 min attempt to alleviate that issue.

I am unsure on whether undefined is the right term for the empty array case - potentially that needs correcting. But regardless - something is better than nothing!

Copy link
Member

@mattbaileyuk mattbaileyuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement

@mattbaileyuk mattbaileyuk merged commit 087d633 into jsonata-js:master Jul 24, 2025
8 checks passed
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.

2 participants