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

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

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base