Skip to content

Is estraverse.replace() return value useful if the method modifies the original in place? #84

@trusktr

Description

@trusktr

I see that estraverse.replace and estraverse.traverse return a tree, but it seems to be the same tree that is passed in, so it seems that the original tree is modified in place. Is the return value needed? What if someone doesn't want to modify the original tree, should they copy duplicate the tree in their own way first?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions