1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

update object-methods

This commit is contained in:
Hencky2018 2018-11-25 21:23:49 +08:00
parent c04151cde4
commit e612f0a8b0

View File

@ -544,7 +544,7 @@ const o = Object.setPrototypeOf({}, null);
该方法等同于下面的函数。
```javascript
function (obj, proto) {
function setPrototypeOf(obj, proto) {
obj.__proto__ = proto;
return obj;
}