Merge pull request #2000 from DaliborP/patch-1

8.4  Prototype methods... - Fix code typo
This commit is contained in:
Ilya Kantor 2020-07-18 14:08:45 +03:00 committed by GitHub
commit b4dfc5d4ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ The `__proto__` is considered outdated and somewhat deprecated (in browser-only
The modern methods are:
- [Object.create(proto[, descriptors])](mdn:js/Object/create) -- creates an empty object with given `proto` as `[[Prototype]]` and optional property descriptors.
- [Object.create(proto, [descriptors])](mdn:js/Object/create) -- creates an empty object with given `proto` as `[[Prototype]]` and optional property descriptors.
- [Object.getPrototypeOf(obj)](mdn:js/Object/getPrototypeOf) -- returns the `[[Prototype]]` of `obj`.
- [Object.setPrototypeOf(obj, proto)](mdn:js/Object/setPrototypeOf) -- sets the `[[Prototype]]` of `obj` to `proto`.