Trường · Unique Array
Trường · Unique Array · helpers.uniqueArray. Phương thức tạo · Ví dụ
helpers.uniqueArray
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Takes an array of strings or function that returns a string and outputs a unique array of strings based on that source. This method does not store the unique state between invocations.
helpers.uniqueArray(source: ReadonlyArray<T> | (() => T), length: number)- source
- The strings to choose from or a function that generates a string.
- length
- The number of elements to generate.
Ví dụ
["beta","alpha"]Dùng dữ liệu tổng hợp trong môi trường kiểm thử.