Update article.md
Change 'just as' to 'just like'.
This commit is contained in:
parent
f44cba85ec
commit
5667b5776d
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ Also, `Object.create` provides an easy way to shallow-copy an object with all de
|
|||
let clone = Object.create(Object.getPrototypeOf(obj), Object.getOwnPropertyDescriptors(obj));
|
||||
```
|
||||
|
||||
We also made it clear that `__proto__` is a getter/setter for `[[Prototype]]` and resides in `Object.prototype`, just as other methods.
|
||||
We also made it clear that `__proto__` is a getter/setter for `[[Prototype]]` and resides in `Object.prototype`, just like other methods.
|
||||
|
||||
We can create an object without a prototype by `Object.create(null)`. Such objects are used as "pure dictionaries", they have no issues with `"__proto__"` as the key.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue