- Mastering Immutable.js
- Adam Boduch
- 100字
- 2021-07-08 10:30:06
Immutable.js constructors
The Immutable.js API exposes immutable collections as classes. You then use these classes to create new collection instances. This is just like any other object-oriented JavaScript API that exposes classes. There is one important difference, though—these aren't real classes.
There are a number of internal implementation reasons for why Immutable.js doesn't expose actual classes as its API. One reason is that in some cases, collection instances can be reused, such as when creating empty collections. The only thing to keep in mind is that you never need to use the new keyword when creating Immutable.js data.
推薦閱讀
- 深入理解Bootstrap
- LabVIEW Graphical Programming Cookbook
- Oracle從新手到高手
- Spring Cloud、Nginx高并發核心編程
- Mastering Swift 2
- Unity Shader入門精要
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- JavaCAPS基礎、應用與案例
- Java EE核心技術與應用
- Cybersecurity Attacks:Red Team Strategies
- Swift 4 Protocol-Oriented Programming(Third Edition)
- 詳解MATLAB圖形繪制技術
- Python爬蟲、數據分析與可視化:工具詳解與案例實戰
- Essential C++(中文版)
- Orleans:構建高性能分布式Actor服務