mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
docs(reflect): edit Reflect.apply
This commit is contained in:
parent
e3cf5bd225
commit
ccefd899e5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user