0.0.6 • Published 4 years ago

common-utils-plus v0.0.6

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

uuid

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.

shuffle

param is an array

import { shuffle } from 'common-utils-plus'
let arr = [1, 2, 3, 4, 5]
console.log(shuffle(arr))