MCPcopy Create free account
hub / github.com/andywer/threads.js / dedupe

Function dedupe

src/master/invocation-proxy.ts:33–33  ·  view source on GitHub ↗
(array: T[])

Source from the content-addressed store, hash-verified

31let nextJobUID = 1
32
33const dedupe = <T>(array: T[]): T[] => Array.from(new Set(array))
34
35const isJobErrorMessage = (data: any): data is WorkerJobErrorMessage => data && data.type === WorkerMessageType.error
36const isJobResultMessage = (data: any): data is WorkerJobResultMessage => data && data.type === WorkerMessageType.result

Callers 1

prepareArgumentsFunction · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected