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

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.

主站蜘蛛池模板: 罗平县| 十堰市| 九龙坡区| 谢通门县| 静乐县| 醴陵市| 德格县| 九龙城区| 绥芬河市| 泌阳县| 西华县| 平远县| 莒南县| 屏东市| 西城区| 额济纳旗| 霍林郭勒市| 瓦房店市| 嵊州市| 介休市| 金昌市| 高密市| 墨玉县| 富顺县| 宜昌市| 徐水县| 特克斯县| 裕民县| 徐水县| 德格县| 同江市| 宁化县| 长武县| 乐安县| 曲松县| 抚松县| 竹山县| 康定县| 沙雅县| 澜沧| 万载县|