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

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
主站蜘蛛池模板: 涿州市| 泰州市| 固安县| 子洲县| 苗栗县| 年辖:市辖区| 固镇县| 卓尼县| 平乡县| 青龙| 常山县| 滁州市| 黄浦区| 嵊州市| 江都市| 南陵县| 福贡县| 永德县| 崇左市| 霍山县| 临城县| 塘沽区| 襄樊市| 滨州市| 武邑县| 巴马| 绥宁县| 大冶市| 东城区| 栾城县| 龙川县| 宜章县| 灵台县| 阆中市| 庄浪县| 获嘉县| 三亚市| 东安县| 明溪县| 麻阳| 海口市|