I\'ve been experimenting with ES6 for a while now, and I\'ve just come to a slight problem.
I really like using arrow functions, and whenever I can, I use them.
Maybe this example help to you :
let bob = { _name: "Bob", _friends: ["stackoverflow"], printFriends:(x)=> { x._friends.forEach((f)=> { console.log(x._name + " knows " + f); }); } } bob.printFriends = (bob.printFriends).bind(null,bob); bob.printFriends();