Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/colinhacks/zod
/ array
Function
array
packages/zod/src/v3/benchmarks/realworld.ts:33–35 ·
view source on GitHub ↗
(fn: () => T)
Source
from the content-addressed store, hash-verified
31
}
32
33
function
array<T>(fn: () => T): T[] {
34
return
Array.from({ length: ++i % 10 }, () => fn());
35
}
36
37
const
people = Array.from({ length: 100 }, () => {
38
return
{
Callers
1
realworld.ts
File · 0.70
Calls
1
fn
Function · 0.85
Tested by
no test coverage detected