ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
# 集合 * 一种**无序**且**唯一**的数据结构 * es6中 Set * 集合常用的操作:去重、判断某元素是否在集合中、求交集等。 https://leetcode-cn.com/problems/intersection-of-two-arrays/ ![](https://img.kancloud.cn/c6/2b/c62b8efd637635046e992a9a61c79054_925x509.png) ![](https://img.kancloud.cn/54/72/54729195d822185021fa7748ddcdaa44_745x298.png) ![](https://img.kancloud.cn/52/33/5233ca17790bdd8cb9ef14f77db49d50_874x160.png)