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

  • 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.

主站蜘蛛池模板: 微山县| 双牌县| 昌平区| 饶阳县| 肃宁县| 连州市| 香港 | 永丰县| 道孚县| 日喀则市| 剑河县| 临汾市| 云霄县| 东至县| 昌黎县| 方山县| 蚌埠市| 筠连县| 汉川市| 开平市| 博白县| 舞钢市| 赤峰市| 吉木萨尔县| 项城市| 鄂伦春自治旗| 黎城县| 福清市| 双城市| 舟曲县| 新蔡县| 清苑县| 杨浦区| 沽源县| 郸城县| 平遥县| 崇州市| 通辽市| 垫江县| 车险| 双流县|