小小白ZCX版
小小白ZCX版
全部
题解 | 查找重复元素
全部文章
分类
归档
标签
去牛客网
登录
/
注册
题解 | 查找重复元素
42 浏览
0 回复
2025-05-28
小小白ZCX版
+关注
function
duplicates
(
arr
) {
return
[...
new
Set
(
arr
.
filter
((
item
,
index
)
=>
arr
.
indexOf
(
item
)!=
index
))]
}
举报
收藏
赞
评论加载中...