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

docs(function): edit arrow function

This commit is contained in:
ruanyf 2017-05-26 17:25:33 +08:00
parent 0842b12577
commit 23c05f8244

View File

@ -959,7 +959,7 @@ headAndTail(1, 2, 3, 4, 5)
2不可以当作构造函数也就是说不可以使用`new`命令,否则会抛出一个错误。
3不可以使用`arguments`对象,该对象在函数体内不存在。如果要用,可以用Rest参数代替。
3不可以使用`arguments`对象,该对象在函数体内不存在。如果要用,可以用 rest 参数代替。
4不可以使用`yield`命令,因此箭头函数不能用作 Generator 函数。