- 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
推薦閱讀
- iOS Game Programming Cookbook
- ASP.NET Web API:Build RESTful web applications and services on the .NET framework
- 程序員面試白皮書
- 零基礎學C++程序設計
- ASP.NET Core 5.0開發入門與實戰
- C#完全自學教程
- Cross-platform Desktop Application Development:Electron,Node,NW.js,and React
- Mastering C# Concurrency
- PHP+MySQL+Dreamweaver動態網站開發實例教程
- Learning Python by Building Games
- Mastering Android Development with Kotlin
- Nginx Lua開發實戰
- 鴻蒙OS應用編程實戰
- Flink技術內幕:架構設計與實現原理
- Python Machine Learning Cookbook