4 ms·
Seems the spread operator (a roadblock for a lot of JS interop) will have to wait until 2.1.
by mhd 10y ago
Seems the spread operator (a roadblock for a lot of JS interop) will have to wait until 2.1.
- ihsw 10y agoI'm currently using the spread operator liberally. Why do you think it's unavailable?
- shados 10y agoprobably meant the object spread one, not array spread.
- tomduncalf 10y agoIt's available in JSX but not outside that scope, e.g. const { name, ...rest } = person; won't work
- WorldMaker 10y agoES2015 Object.assign() doesn't seem to me much more verbose than the not yet standardized object spread operator.