MCPcopy Index your code
hub / github.com/TanStack/table / newPerson

Function newPerson

examples/solid/bootstrap/src/makeData.ts:20–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20const newPerson = (): Person => {
21 return {
22 firstName: faker.person.firstName(),
23 lastName: faker.person.lastName(),
24 age: faker.number.int(40),
25 visits: faker.number.int(1000),
26 progress: faker.number.int(100),
27 status: faker.helpers.shuffle<Person['status']>([
28 'relationship',
29 'complicated',
30 'single',
31 ])[0]!,
32 }
33}
34
35export function makeData(...lens: number[]) {
36 const makeDataLevel = (depth = 0): Person[] => {

Callers 1

makeDataLevelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected