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

Function newPerson

examples/angular/table/src/app/make-data.ts:22–37  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

20}
21
22const newPerson = (index: number): Person => {
23 return {
24 id: index + 1,
25 firstName: faker.name.firstName(),
26 lastName: faker.name.lastName(),
27 age: faker.number.int(40),
28 visits: faker.number.int(1000),
29 progress: faker.number.int(100),
30 createdAt: faker.datatype.datetime({ max: new Date().getTime() }),
31 status: faker.helpers.shuffle<Person['status']>([
32 'relationship',
33 'complicated',
34 'single',
35 ])[0]!,
36 }
37}
38
39export function makeData(...lens: number[]) {
40 const makeDataLevel = (depth = 0): Person[] => {

Callers 1

makeDataLevelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected