MCPcopy 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
159export function eliminateDuplicates(arr: Array<any>): Array<any> {
160 return Array.from(new Set(arr));
161}
162
163export function executeOnMainThread(func: Function) {
164 if (isMainThread()) {

Callers 1

hasDuplicatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected