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

  • Mastering Immutable.js
  • Adam Boduch
  • 71字
  • 2021-07-08 10:30:08

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.

主站蜘蛛池模板: 方正县| 突泉县| 阿拉善盟| 札达县| 西昌市| 安仁县| 枣庄市| 巨鹿县| 临沂市| 天柱县| 万全县| 东乡县| 横山县| 射阳县| 东阳市| 桐柏县| 当雄县| 汉中市| 崇礼县| 涞源县| 平定县| 通州区| 遵化市| 廉江市| 米脂县| 宜宾市| 新兴县| 五大连池市| 鹤峰县| 高密市| 奉贤区| 娱乐| 武胜县| 合肥市| 高雄市| 马公市| 长垣县| 徐州市| 海口市| 西林县| 航空|