- 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.
推薦閱讀
- 從零開(kāi)始:數(shù)字圖像處理的編程基礎(chǔ)與應(yīng)用
- Delphi程序設(shè)計(jì)基礎(chǔ):教程、實(shí)驗(yàn)、習(xí)題
- Flink SQL與DataStream入門(mén)、進(jìn)階與實(shí)戰(zhàn)
- 數(shù)據(jù)結(jié)構(gòu)(Java語(yǔ)言描述)
- DevOps入門(mén)與實(shí)踐
- The Data Visualization Workshop
- 算法訓(xùn)練營(yíng):提高篇(全彩版)
- MongoDB權(quán)威指南(第3版)
- Tableau 10 Bootcamp
- Python全棧數(shù)據(jù)工程師養(yǎng)成攻略(視頻講解版)
- CRYENGINE Game Development Blueprints
- Principles of Strategic Data Science
- Kotlin Programming By Example
- OpenCV 3計(jì)算機(jī)視覺(jué):Python語(yǔ)言實(shí)現(xiàn)(原書(shū)第2版)
- Shopify Application Development