Update shallow-clone-object.md

This commit is contained in:
Angelos Chalaris
2017-12-14 23:27:27 +02:00
committed by GitHub
parent 6ced078936
commit db097c03f2

View File

@ -1,6 +1,6 @@
### Shallow clone object
Use the object spread operator to spread the properties of the target object into the clone.
Use the object `...spread` operator to spread the properties of the target object into the clone.
```js
const shallowClone = obj => ({ ...obj });