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

  • Mastering Immutable.js
  • Adam Boduch
  • 80字
  • 2021-07-08 10:30:06

Sets

A set is like a list in that it's an indexed collection. There are two things about sets that are different from lists. First, sets can only hold unique values—duplicates are silently ignored. Second, the iteration order of sets isn't defined. This means that the index of a given value doesn't necessarily reflect the iteration order of the value:

import { Set } from 'immutable';
const mySet = Set();
console.log('Set', mySet instanceof Set);
// -> Set true
主站蜘蛛池模板: 普兰店市| 巨鹿县| 宁强县| 商南县| 呼和浩特市| 德庆县| 察哈| 开原市| 嘉兴市| 盱眙县| 孙吴县| 抚远县| 新巴尔虎左旗| 平舆县| 勃利县| 衡水市| 宝清县| 应用必备| 沿河| 雷州市| 绥滨县| 永登县| 南昌县| 大宁县| 合阳县| 浦江县| 安仁县| 顺义区| 长海县| 邯郸县| 江永县| 白水县| 天津市| 吉林省| 新昌县| 阳春市| 内黄县| 三都| 南和县| 交口县| 突泉县|