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

242 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 →

    1 comment

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • 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