- Mastering Immutable.js
- Adam Boduch
- 53字
- 2021-07-08 10:30:07
Records
A record is closer to a JavaScript object than to an Immutable.js map. The idea here is that records have a predetermined set of allowable string keys, which can specify default values when not provided:
const MyRecord = Record({});
const myRecord = new MyRecord();
console.log('Record', myRecord instanceof Record);
// -> Record true
推薦閱讀
- 大話PLC(輕松動漫版)
- SpringMVC+MyBatis快速開發與項目實戰
- Clojure for Domain:specific Languages
- x86匯編語言:從實模式到保護模式(第2版)
- 數據結構(Python語言描述)(第2版)
- 單片機應用技術
- CKA/CKAD應試教程:從Docker到Kubernetes完全攻略
- Visual Basic程序設計實驗指導(第二版)
- Hands-On Nuxt.js Web Development
- Training Systems Using Python Statistical Modeling
- OpenCV Android Programming By Example
- Instant Automapper
- 深度實踐KVM:核心技術、管理運維、性能優化與項目實施
- C#面向對象程序設計(第2版)
- R的極客理想:量化投資篇