MCPcopy
hub / github.com/vitest-dev/vitest / add

Function add

test/core/src/in-source/add.ts:1–3  ·  view source on GitHub ↗
(...args: number[])

Source from the content-addressed store, hash-verified

1export function add(...args: number[]) {
2 return args.reduce((a, b) => a + b, 0)
3}
4
5// in-source test suites
6if (import.meta.vitest) {

Callers 3

fibonacciFunction · 0.90
add.tsFile · 0.70
wasm.test.tsFile · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected