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

  • 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
主站蜘蛛池模板: 安图县| 岑巩县| 广丰县| 鹰潭市| 辽阳市| 隆化县| 新龙县| 正蓝旗| 南宁市| 仙游县| 冕宁县| 军事| 锡林浩特市| 平阴县| 和平县| 桑日县| 新和县| 碌曲县| 怀柔区| 太湖县| 宜州市| 会东县| 聂拉木县| 莎车县| 永城市| 龙门县| 桓台县| 丰镇市| 广东省| 汉寿县| 高邮市| 阜新| 隆子县| 庄河市| 菏泽市| 乌兰浩特市| 马边| 永登县| 栖霞市| 阜新| 宣武区|