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

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
主站蜘蛛池模板: 烟台市| 惠州市| 开远市| 邯郸县| 苏州市| 常德市| 宜章县| 宜丰县| 揭西县| 郁南县| 齐河县| 江西省| 西丰县| 淳化县| 城步| 平潭县| 长子县| 城口县| 锡林浩特市| 右玉县| 牟定县| 罗山县| 阿鲁科尔沁旗| 兴海县| 徐汇区| 祁连县| 尉氏县| 秦安县| 晋宁县| 河西区| 柳林县| 富顺县| 车致| 葫芦岛市| 封丘县| 遂宁市| 六枝特区| 西青区| 通渭县| 西畴县| 湛江市|