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

Function newPerson

examples/vanilla/sorting/src/makeData.ts:23–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

makeDataLevelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected