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

  • 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
主站蜘蛛池模板: 青河县| 林口县| 南汇区| 蓬莱市| 体育| 绍兴市| 理塘县| 中阳县| 西乌珠穆沁旗| 台安县| 昭通市| 衡水市| 吉安市| 布拖县| 观塘区| 台湾省| 靖宇县| 开化县| 商河县| 太湖县| 仪征市| 大同市| 凤山市| 资中县| 全州县| 仙桃市| 依安县| 称多县| 渭南市| 大关县| 兴化市| 寿光市| 托克托县| 盐池县| 淮滨县| 呼伦贝尔市| 鄂托克旗| 东辽县| 禹州市| 潼南县| 古交市|