- 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
推薦閱讀
- Git Version Control Cookbook
- Python數(shù)據(jù)分析基礎(chǔ)
- 劍指JVM:虛擬機(jī)實(shí)踐與性能調(diào)優(yōu)
- Python應(yīng)用輕松入門
- Redis Essentials
- AIRIOT物聯(lián)網(wǎng)平臺開發(fā)框架應(yīng)用與實(shí)戰(zhàn)
- Vue.js 2 Web Development Projects
- Rust游戲開發(fā)實(shí)戰(zhàn)
- OpenCV with Python By Example
- JavaScript動態(tài)網(wǎng)頁編程
- .NET Standard 2.0 Cookbook
- Xcode 6 Essentials
- Django Design Patterns and Best Practices
- 深度實(shí)踐KVM:核心技術(shù)、管理運(yùn)維、性能優(yōu)化與項(xiàng)目實(shí)施
- Python全棧開發(fā):基礎(chǔ)入門