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

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.

主站蜘蛛池模板: 昆明市| 栾川县| 科技| 蓬溪县| 武冈市| 永嘉县| 昂仁县| 周口市| 镇原县| 三门峡市| 巴彦县| 礼泉县| 邢台县| 福清市| 阜新| 获嘉县| 周口市| 天柱县| 平罗县| 怀集县| 任丘市| 桂阳县| 手机| 宜川县| 普洱| 博野县| 游戏| 乌苏市| 宝坻区| 蒲城县| 安西县| 衡阳县| 六安市| 镇江市| 扎兰屯市| 科技| 蓬安县| 儋州市| 徐州市| 东乡| 宜昌市|