How can we improve the Microsoft Edge developer experience?

Spread operator for object literals

This feature is currently Stage 3 and is implemented by Firefox stable, Chrome stable, Safari Preview, and Node stable.

This is really useful for shallow cloning objects:

let objClone = { ...obj };

References:

http://kangax.github.io/compat-table/esnext/

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator#Spread_in_object_literals

484 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    styfle shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Tobias Uhlig commented  ·   ·  Flag as inappropriate

        this feature would be nice to have. this is the main reason i am using babel to transpile a new framework, while it does run without it in chrome, safari & ff.

      • Patrick Kettner commented  ·   ·  Flag as inappropriate

        Since this is a javascript feature, it is actually not implemented by the edge team (who monitors this uservoice) but by the Chakra team, who implement the javascript engine used by Edge. Since Chakra is open source, you can track status on their github here - https://github.com/Microsoft/ChakraCore/issues/3406. Once it is implemented there, Edge will inherit it shortly there after.

      Feedback and Knowledge Base