官术网_书友最值得收藏!

Immutable.js constructors

The Immutable.js API exposes immutable collections as classes. You then use these classes to create new collection instances. This is just like any other object-oriented JavaScript API that exposes classes. There is one important difference, though—these aren't real classes.

There are a number of internal implementation reasons for why Immutable.js doesn't expose actual classes as its API. One reason is that in some cases, collection instances can be reused, such as when creating empty collections. The only thing to keep in mind is that you never need to use the new keyword when creating Immutable.js data.

主站蜘蛛池模板: 石河子市| 菏泽市| 汉源县| 玉山县| 海阳市| 固始县| 增城市| 浠水县| 宾川县| 南陵县| 巴东县| 鄂托克前旗| 兴国县| 南皮县| 青铜峡市| 高要市| 循化| 古浪县| 梅州市| 蛟河市| 苏尼特左旗| 庄浪县| 大渡口区| 溧水县| 龙山县| 平原县| 左权县| 汤阴县| 措美县| 贺兰县| 清河县| 巴林右旗| 南平市| 宁明县| 内江市| 嵊州市| 和龙市| 邵阳县| 抚远县| 海阳市| 灵寿县|