Skip to content
On this page

arrayShuffle

数组洗牌

参数类型

ts
<T>(arr: T[])

返回值类型

ts
T[]

use example

ts
import { arrayShuffle } from "poor-utils-pro";

arrayShuffle([1,2,3,4,5,6])  
// [4,6,1,2,3,5] or [1,3,5,2,4,6] or ...