HackerTrans
トップ新着トレンドコメント過去質問紹介求人

cribbles

no profile record

コメント

cribbles
·7 年前·議論
This code wouldn't execute properly, since arrow functions are scoped to the surrounding code block and cannot be rebound.

You would need to use `function` for this:

  function getFoo() {
    return this.foo;
  }