Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/XIU2/UserScript
/ unique
Function
unique
Ping.Sx-Enhanced.user.js:118–120 ·
view source on GitHub ↗
(arr)
Source
from the content-addressed store, hash-verified
116
117
// 数组去重复
118
function
unique(arr) {
119
return
Array.from(
new
Set(arr)).sort();
120
}
121
122
123
// 寻找父元素
Callers
2
addCopyButtonEvent1
Function · 0.85
addCopyButtonEvent2
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected