common-utils-plus
- common utils plus makes your life easier.param is a number which the length of return string value is.
import { uuid } from 'common-utils-plus'
console.log(uuid(36))
the min param number is 24,if we don't pass it to the function, we get a string that has 36 characters.
param is an array
import { shuffle } from 'common-utils-plus'
let arr = [1, 2, 3, 4, 5]
console.log(shuffle(arr))