- 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.
推薦閱讀
- Python編程自學手冊
- INSTANT OpenCV Starter
- Learning Linux Binary Analysis
- C語言程序設計實踐教程
- D3.js 4.x Data Visualization(Third Edition)
- MATLAB for Machine Learning
- Java系統化項目開發教程
- Mastering C++ Multithreading
- Julia數據科學應用
- 算法圖解
- 深入實踐DDD:以DSL驅動復雜軟件開發
- Learning Image Processing with OpenCV
- WCF全面解析
- Java編程指南:語法基礎、面向對象、函數式編程與項目實戰
- Java程序設計(項目教學版)