Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NativeScript/NativeScript
/ eliminateDuplicates
Function
eliminateDuplicates
packages/core/utils/common.ts:159–161 ·
view source on GitHub ↗
(arr: Array<any>)
Source
from the content-addressed store, hash-verified
157
}
158
159
export
function
eliminateDuplicates(arr: Array<any>): Array<any> {
160
return
Array.from(
new
Set(arr));
161
}
162
163
export
function
executeOnMainThread(func: Function) {
164
if
(isMainThread()) {
Callers
1
hasDuplicates
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected