- 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.
推薦閱讀
- Hands-On Machine Learning with scikit:learn and Scientific Python Toolkits
- Mastering Objectoriented Python
- Oracle數據庫從入門到運維實戰
- Python自然語言處理(微課版)
- Mastering AndEngine Game Development
- 匯編語言程序設計(第3版)
- JavaScript+Vue+React全程實例
- Learning Network Forensics
- Python編程與幾何圖形
- Working with Odoo
- Haskell Data Analysis Cookbook
- Getting Started with LLVM Core Libraries
- 學習OpenCV 4:基于Python的算法實戰
- Spring技術內幕:深入解析Spring架構與設計原理(第2版)
- FPGA嵌入式項目開發實戰