MCPcopy
hub / github.com/facebook/react / calculateMean

Function calculateMean

compiler/packages/react-mcp-server/src/index.ts:26–30  ·  view source on GitHub ↗
(values: number[])

Source from the content-addressed store, hash-verified

24import {parseReactComponentTree} from './tools/componentTree';
25
26function calculateMean(values: number[]): string {
27 return values.length > 0
28 ? values.reduce((acc, curr) => acc + curr, 0) / values.length + 'ms'
29 : 'could not collect';
30}
31
32const server = new McpServer({
33 name: 'React',

Callers 1

index.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected