Trường · Multiple
Trường · Multiple · helpers.multiple. Phương thức tạo · Ví dụ
helpers.multiple
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Generates an array containing values returned by the given method.
helpers.multiple(method: (v: unknown, index: number) => TResult, options?: { count? })- method
- The method used to generate the values. The method will be called with (_, index), to allow using the index in the generated value e.g. as id.
- options
- The optional options object.
- options.count
- The number or range of elements to generate. Defaults to 3.
Ví dụ
["IhGd","JvsR","hiPM"]Dùng dữ liệu tổng hợp trong môi trường kiểm thử.