mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-25 03:02:21 +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 youngest = Reflect.apply(Math.min, Math, ages);
|
||||||
const oldest = Reflect.apply(Math.max, 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)
|
### Reflect.defineProperty(target, propertyKey, attributes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user