1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-25 03:02:21 +00:00

edit function/bind operator

This commit is contained in:
ruanyf 2015-11-30 12:08:15 +08:00
parent 1228e708a5
commit 1ed8d1d915

View File

@ -977,10 +977,10 @@ var fix = f => (x => f(v => x(x)(v)))
```javascript ```javascript
foo::bar; foo::bar;
// 等同于 // 等同于
bar.call(foo); bar.bind(foo);
foo::bar(...arguments); foo::bar(...arguments);
i// 等同于 // 等同于
bar.apply(foo, arguments); bar.apply(foo, arguments);
const hasOwnProperty = Object.prototype.hasOwnProperty; const hasOwnProperty = Object.prototype.hasOwnProperty;