Skip to content

Commit

Permalink
Merge pull request #1962 from jayphelps/bind
Browse files Browse the repository at this point in the history
docs(usage): Don't recommend function-bind operator as the "best" sol…
  • Loading branch information
kwonoj authored Sep 21, 2016
2 parents aa4e12f + e574149 commit 646b38d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ import 'rxjs/add/operator/map';
Observable.of(1,2,3).map(x => x + '!!!'); // etc
```

To import what you need and use it with ES next function bind (best overall method, if possible):
To import what you need and use it with proposed [bind operator](https://github.com/tc39/proposal-bind-operator):

> Note: This additional syntax requires [transpiler support](http://babeljs.io/docs/plugins/transform-function-bind/) and this syntax may be completely withdrawn from TC39 without notice! Use at your own risk.
```js
import { Observable } from 'rxjs/Observable';
Expand Down
4 changes: 3 additions & 1 deletion doc/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ import 'rxjs/add/operator/map';
Observable.of(1,2,3).map(x => x + '!!!'); // etc
```

To import what you need and use it with ES next function bind (best overall method, if possible):
To import what you need and use it with proposed [bind operator](https://github.com/tc39/proposal-bind-operator):

> Note: This additional syntax requires [transpiler support](http://babeljs.io/docs/plugins/transform-function-bind/) and this syntax may be completely withdrawn from TC39 without notice! Use at your own risk.
```js
import { Observable } from 'rxjs/Observable';
Expand Down

0 comments on commit 646b38d

Please sign in to comment.