mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs(reflect): edit Reflect.apply
This commit is contained in:
+1
-1
@@ -341,7 +341,7 @@ const type = Object.prototype.toString.call(youngest);
|
||||
// 新写法
|
||||
const youngest = Reflect.apply(Math.min, Math, ages);
|
||||
const oldest = Reflect.apply(Math.max, Math, ages);
|
||||
const type = Reflect.apply(Object.prototype.toString, youngest);
|
||||
const type = Reflect.apply(Object.prototype.toString, youngest, []);
|
||||
```
|
||||
|
||||
### Reflect.defineProperty(target, propertyKey, attributes)
|
||||
|
||||
Reference in New Issue
Block a user