4 ms·
I'm currently using the spread operator liberally. Why do you think it's unavailable?
by ihsw 10y ago
I'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