Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Wildcard operator behavior is different after $map #650

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Gobinath-B
Copy link

Description

The inner map function effectively produces a sequence of objects, but it also produces a result for each element processed. This result is true because there's no explicit return statement. In many programming languages, a function that doesn't explicitly return anything will return a default value, which is often true.

if (typeof node.ancestor === 'undefined') {
                            node.ancestor = slot;
                        } else {
                            // reuse the existing label
                            ancestry[slot.index].slot.label = node.ancestor.label;
                            node.ancestor = slot;
                        }
                    // node.tuple = true
                    }
                    break;

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