- 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
推薦閱讀
- 高效微控制器C語言編程
- 算法訓(xùn)練營:入門篇(全彩版)
- HTML5+CSS3基礎(chǔ)開發(fā)教程(第2版)
- Python爬蟲開發(fā)與項(xiàng)目實(shí)戰(zhàn)
- Swift 3 New Features
- Python漫游數(shù)學(xué)王國:高等數(shù)學(xué)、線性代數(shù)、數(shù)理統(tǒng)計(jì)及運(yùn)籌學(xué)
- PHP+MySQL網(wǎng)站開發(fā)項(xiàng)目式教程
- 區(qū)塊鏈技術(shù)與應(yīng)用
- Learning Apache Karaf
- Scala for Machine Learning(Second Edition)
- Mastering C++ Multithreading
- Serverless Web Applications with React and Firebase
- AI自動(dòng)化測試:技術(shù)原理、平臺(tái)搭建與工程實(shí)踐
- Java Web開發(fā)教程:基于Struts2+Hibernate+Spring
- XML程序設(shè)計(jì)(第二版)