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

Using the of() method

Collection types in Immutable.js have a static of() method. This method is an alternative to using the collection constructor. The one downside to using the constructor approach is that you have to pass in a JavaScript literal. You have to build and allocate memory for a structure that you're not actually using.

The of() method uses the arguments that are passed to it as the collection items.

主站蜘蛛池模板: 塘沽区| 静海县| 镇远县| 宣城市| 郑州市| 日土县| 宜阳县| 扬州市| 民乐县| 内黄县| 青河县| 乐陵市| 洪雅县| 黄大仙区| 普陀区| 明光市| 麻城市| 庆阳市| 新和县| 巴马| 建德市| 合川市| 枝江市| 锦屏县| 米易县| 含山县| 宜丰县| 满洲里市| 台北市| 淮北市| 湟源县| 禹城市| 红河县| 如东县| 盖州市| 海原县| 辽宁省| 响水县| 吴江市| 桃源县| 高要市|