minor fixes
This commit is contained in:
parent
cea9d8c9c2
commit
30c9c32cd7
1 changed files with 0 additions and 1 deletions
|
@ -57,7 +57,6 @@ The descriptors are in the same format as described in the chapter <info:propert
|
|||
We can use `Object.create` to perform an object cloning more powerful than copying properties in `for..in`:
|
||||
|
||||
```js
|
||||
// fully identical shallow clone of obj
|
||||
let clone = Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue