Skip to content
Frontend Interview
Search
K
Main Navigation
Home
Interview
Leetcode
Utils
Network
Appearance
Menu
Return to top
On this page
Table of Contents for current page
常用的数组操作
数组去重
typescript
const
removeDuplicate
=
<
T
=
any
>(
arr
:
T
[])
=>
{
return
[
...new
Set
(arr)]
}