- Mastering Immutable.js
- Adam Boduch
- 45字
- 2021-07-08 10:30:09
Parsing JavaScript objects
You can parse a regular JavaScript object, resulting in a map:
const myMap = fromJS({
one: 1,
two: 2,
three: 3
});
console.log('myMap', myMap.get('one'));
// -> myMap 1
Once again, this is just like passing the object literal to the Map constructor.
推薦閱讀
- 數(shù)據(jù)庫原理及應(yīng)用(Access版)第3版
- 算法精粹:經(jīng)典計(jì)算機(jī)科學(xué)問題的Java實(shí)現(xiàn)
- Learn WebAssembly
- 差分進(jìn)化算法及其高維多目標(biāo)優(yōu)化應(yīng)用
- Visual C++應(yīng)用開發(fā)
- Swift語言實(shí)戰(zhàn)精講
- Learning Laravel's Eloquent
- Go語言開發(fā)實(shí)戰(zhàn)(慕課版)
- Solutions Architect's Handbook
- TypeScript 2.x By Example
- 深入分析GCC
- Learning Bootstrap 4(Second Edition)
- Practical Maya Programming with Python
- Python Social Media Analytics
- Mastering ASP.NET Web API