mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2025-05-24 18:32:22 +00:00
edit function/bind operator
This commit is contained in:
parent
1228e708a5
commit
1ed8d1d915
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user