UseFakeList
katanakit-js / useFakeList
Function: useFakeList()
Section titled “Function: useFakeList()”function useFakeList<T>(factory, count): Promise<T[]>;Defined in: core/services/faker.service.ts:387
Builds an array of fake items from a factory. See FakerService.useFakeList.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
factory |
(index) => T | Promise<T> |
count |
number |
Returns
Section titled “Returns”Promise<T[]>