MCPcopy Index your code
hub / github.com/react-hook-form/react-hook-form / makeDefaults

Function makeDefaults

scripts/bench.ts:23–27  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

21// ---------------------------------------------------------------------------
22
23function makeDefaults(n: number): Record<string, string> {
24 const v: Record<string, string> = {};
25 for (let i = 0; i < n; i++) v[`f${i}`] = '';
26 return v;
27}
28
29function makeEvent(name: string, value: string) {
30 // target.type is omitted → onChange uses getEventValue(event) instead of

Callers 1

bench.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…