Improve example of babel-plugin-transform-es2015-arrow-functions
[skip ci]
This commit is contained in:
parent
878a7c5fdb
commit
95c65ec1cb
@ -40,7 +40,7 @@ console.log(double); // [2,4,6]
|
|||||||
var bob = {
|
var bob = {
|
||||||
_name: "Bob",
|
_name: "Bob",
|
||||||
_friends: ["Sally", "Tom"],
|
_friends: ["Sally", "Tom"],
|
||||||
printFriends: function printFriends() {
|
printFriends() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
this._friends.forEach(function (f) {
|
this._friends.forEach(function (f) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user