官术网_书友最值得收藏!

  • Mastering Immutable.js
  • Adam Boduch
  • 46字
  • 2021-07-08 10:30:09

Parsing JavaScript arrays

You can parse a regular JavaScript array, resulting in a list, as shown here:

import { fromJS } from 'immutable';
const myList = fromJS([1, 2, 3]);
console.log('myList', myList.get(0));
// -> myList 1

This is just like passing the array to the List constructor.

主站蜘蛛池模板: 西华县| 金门县| 扬州市| 宁明县| 石台县| 金门县| 工布江达县| 察雅县| 安溪县| 瑞丽市| 奇台县| 本溪市| 永寿县| 新河县| 博罗县| 虎林市| 松原市| 缙云县| 新丰县| 柘城县| 个旧市| 海晏县| 晋州市| 米泉市| 德令哈市| 剑河县| 中西区| 赞皇县| 正安县| 阳春市| 左权县| 泾阳县| 永泰县| 香格里拉县| 方城县| 尚义县| 毕节市| 济阳县| 孙吴县| 剑河县| 汉中市|