Updated examples
Removed duplicate and unnecessary examples.
This commit is contained in:
@ -10,6 +10,5 @@ const shallowClone = obj => Object.assign({}, obj);
|
||||
|
||||
```js
|
||||
const a = { x: true, y: 1 };
|
||||
const b = shallowClone(a);
|
||||
a === b; // false
|
||||
const b = shallowClone(a); // a !== b
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user