- 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
推薦閱讀
- CMDB分步構建指南
- Python 3網絡爬蟲實戰
- PostgreSQL 11從入門到精通(視頻教學版)
- 單片機應用與調試項目教程(C語言版)
- Learning Hunk
- Learning Laravel's Eloquent
- Android開發三劍客:UML、模式與測試
- Flowable流程引擎實戰
- JBoss:Developer's Guide
- Solutions Architect's Handbook
- Visual Basic 程序設計實踐教程
- 數據科學中的實用統計學(第2版)
- 3D Printing Designs:Octopus Pencil Holder
- Go Systems Programming
- Wearable:Tech Projects with the Raspberry Pi Zero