jcts-utils
TypeScript 函数库、工具类
Docs
Installing
npm i jcts-utils
Using
import { getRandomList } from "jcts-utils";
const list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const newList = getRandomList(list);
console.log(newList); // 随机数组,此处只展示一种情况:[8, 2, 9, 4, 1, 6, 7, 5, 10, 3]
License
ISC © 2023, gaojunchao