- 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.
推薦閱讀
- 軟件安全技術
- oreilly精品圖書:軟件開發者路線圖叢書(共8冊)
- Instant Typeahead.js
- 你必須知道的204個Visual C++開發問題
- Python漫游數學王國:高等數學、線性代數、數理統計及運籌學
- Hands-On Microservices with Kotlin
- Apache Kafka Quick Start Guide
- 劍指Java:核心原理與應用實踐
- 一本書講透Java線程:原理與實踐
- Django實戰:Python Web典型模塊與項目開發
- CRYENGINE Game Development Blueprints
- IBM Cognos TM1 Developer's Certification guide
- Python程序設計開發寶典
- 現代CPU性能分析與優化
- ASP.NET Core and Angular 2