- 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.
推薦閱讀
- R語言經典實例(原書第2版)
- TypeScript Blueprints
- Oracle從新手到高手
- Mastering SVG
- JavaScript+jQuery網頁特效設計任務驅動教程(第2版)
- Git高手之路
- Full-Stack Vue.js 2 and Laravel 5
- Python Web數據分析可視化:基于Django框架的開發實戰
- 用戶體驗可視化指南
- INSTANT Yii 1.1 Application Development Starter
- DB2SQL性能調優秘笈
- Learning Alfresco Web Scripts
- Mastering Unity 2017 Game Development with C#(Second Edition)
- OpenStack Sahara Essentials
- Image Processing with ImageJ(Second Edition)