MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / bestDetection

Function bestDetection

packages/react/src/pages/integrations.tsx:76–79  ·  view source on GitHub ↗
(
  results: readonly IntegrationDetectionResult[],
)

Source from the content-addressed store, hash-verified

74};
75
76const bestDetection = (
77 results: readonly IntegrationDetectionResult[],
78): IntegrationDetectionResult | undefined =>
79 [...results].sort((a, b) => detectionRank[b.confidence] - detectionRank[a.confidence])[0];
80
81// ---------------------------------------------------------------------------
82// Page

Callers 1

ConnectDialogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected