mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
Merge pull request #779 from Hencky/object-methods
update object-methods
This commit is contained in:
commit
6914670a90
@ -544,7 +544,7 @@ const o = Object.setPrototypeOf({}, null);
|
||||
该方法等同于下面的函数。
|
||||
|
||||
```javascript
|
||||
function (obj, proto) {
|
||||
function setPrototypeOf(obj, proto) {
|
||||
obj.__proto__ = proto;
|
||||
return obj;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user