Skip to content

Docs: Default es6 features should clarify type of Spread operator #653

Description

@batjko

Hi guys,

When I read through this list of features shipped by default:
https://nodejs.org/en/docs/es6/#which-features-ship-with-node-js-by-default-no-runtime-flag-required
... I thought it great that the Spread operator is now supported without any flags.

So I went and tried the spread operator on an object and was promptly met with an Unexpected token ... error, despite having node v5.10 installed.

I then had to be educated by StackOverflow that it is only the Array spread operator that is supported, but not the Object spread operator.

I think this should be clarified on the page.

Many thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions