Skip to content

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