- 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
推薦閱讀
- UML和模式應用(原書第3版)
- 小程序實戰視頻課:微信小程序開發全案精講
- CMDB分步構建指南
- Building a Game with Unity and Blender
- Visual Basic程序設計教程
- DevOps入門與實踐
- 青少年美育趣味課堂:XMind思維導圖制作
- Python忍者秘籍
- Getting Started with Nano Server
- Visual FoxPro 6.0程序設計
- Android Development Tools for Eclipse
- C編程技巧:117個問題解決方案示例
- OpenCV Android開發實戰
- Clojure Polymorphism
- 邊玩邊學Scratch3.0少兒趣味編程