Skip to content

Commit d6045d0

Browse files
committed
docs(proposals): edit proposals
1 parent 9be34c0 commit d6045d0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/proposals.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,17 @@ const g = f(?, 1, ...);
242242
const g = (x, ...y) => f(x, 1, ...y);
243243
```
244244
245+
函数的部分执行,也可以用于对象的方法。
246+
247+
```javascript
248+
let obj = {
249+
f(x, y) { return x + y; },
250+
};
251+
252+
const g = obj.f(?, 3);
253+
g(1) // 4
254+
```
255+
245256
### 注意点
246257
247258
函数的部分执行有一些特别注意的地方。

0 commit comments

Comments
 (0)