Trường · Shuffle
Trường · Shuffle · helpers.shuffle. Phương thức tạo · Ví dụ
helpers.shuffle
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Takes an array and randomizes it in place then returns it.
helpers.shuffle(list: T[], options: { inplace })- list
- The array to shuffle.
- options
- The options to use when shuffling.
- options.inplace
- Whether to shuffle the array in place or return a new array. Defaults to false.
Ví dụ
["beta","alpha","gamma"]Dùng dữ liệu tổng hợp trong môi trường kiểm thử.