MCPcopy
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
33function array<T>(fn: () => T): T[] {
34 return Array.from({ length: ++i % 10 }, () => fn());
35}
36
37const people = Array.from({ length: 100 }, () => {
38 return {

Callers 1

realworld.tsFile · 0.70

Calls 1

fnFunction · 0.85

Tested by

no test coverage detected