Appearance
创建一个打乱顺序的数组副本。
import { shuffle } from '@base-web-kits/base-tools-ts'; shuffle([1, 2, 3, 4]); // 结果: [4, 1, 3, 2] (随机)
collection (Array)
(Array)