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

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.

主站蜘蛛池模板: 前郭尔| 泌阳县| 丽江市| 新乐市| 中牟县| 望江县| 抚松县| 文成县| 肇州县| 襄汾县| 本溪| 锦屏县| 西平县| 鄂尔多斯市| 邹平县| 上杭县| 肥东县| 榆林市| 颍上县| 宿松县| 沿河| 会东县| 普定县| 高邮市| 司法| 普安县| 云龙县| 乌兰浩特市| 扎赉特旗| 青州市| 连平县| 田阳县| 玉龙| 佛教| 和顺县| 辽中县| 寿阳县| 武强县| 肥西县| 星座| 会同县|