[JavaScript General] Private properties/methods in JavaScript ES2015 classes

memo.
とりあえず保留。

[markdown]
外部からアクセスできないプロパティやメソッドを定義する手法がある。

JavaScript逆引きレシピ jQuery対応
山田 祥寛
翔泳社
売り上げランキング: 161,546

See the Pen Private properties in JavaScript 1/2 by DriftwoodJP (@DriftwoodJP) on CodePen.

ES2015 Class 定義でどう書くのか?

See the Pen Private properties in JavaScript 2/2 by DriftwoodJP (@DriftwoodJP) on CodePen.

> * [javascript – How to implement private method in ES6 class with Traceur – Stack Overflow](http://stackoverflow.com/questions/27849064/how-to-implement-private-method-in-es6-class-with-traceur)
>
> There are no private, public or protected keywords in current ECMAScript 6 specification.

WeakMap を使ってゴニョゴニョする方法があるようだけれども。。。

> * [15. Classes](http://exploringjs.com/es6/ch_classes.html#sec_private-data-for-classes)
[/markdown]