Permalink
Browse files

Merge pull request #1009 from matthamil/patch-1

Typo in ch2: prinicple --> principle
  • Loading branch information...
getify committed Aug 15, 2017
2 parents 0e3b97b + 098c4e2 commit e342ec48f9e19c873e9a81dd36013c5875317dcc
Showing with 1 addition and 1 deletion.
  1. +1 −1 es6 & beyond/ch2.md
View
@@ -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.

0 comments on commit e342ec4

Please sign in to comment.