Skip to content

Commit

Permalink
Typo in ch2: prinicple --> principle
Browse files Browse the repository at this point in the history
  • Loading branch information
matthamil committed Apr 13, 2017
1 parent 6109cfe commit 098c4e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es6 & beyond/ch2.md
Original file line number Diff line number Diff line change
Expand Up @@ -1929,7 +1929,7 @@ var controller = {

Lexical `this` in the arrow function callback in the previous snippet now points to the same value as in the enclosing `makeRequest(..)` function. In other words, `=>` is a syntactic stand-in for `var self = this`.

In cases where `var self = this` (or, alternatively, a function `.bind(this)` call) would normally be helpful, `=>` arrow functions are a nicer alternative operating on the same prinicple. Sounds great, right?
In cases where `var self = this` (or, alternatively, a function `.bind(this)` call) would normally be helpful, `=>` arrow functions are a nicer alternative operating on the same principle. Sounds great, right?

Not quite so simple.

Expand Down

0 comments on commit 098c4e2

Please sign in to comment.