Skip to content

transform-es2015-parameters: remove unnecessary + 0 #4692

@hzoo

Description

@hzoo

Ref https://github.com/babel/babel/pull/4674/files#r82056317

Producing code that has index++ + 0 which is unnecessary.

If the index of the rest (...a) is 0 then don't do the + 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR: Polish 💅A type of pull request used for our changelog categorieshelp wantedoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions