UNPKG

cheng-utils

Version:

there will publish something my common utils, you guy's can try it! I will integrate the commma in to there

36 lines (31 loc) 829 B
# cheng-utils # Array > - ### Array Generator: > > you can use this to generate the same content to mock data. > first, import chengArray to your project. > > ```js > import { ChengArray } from "cheng-utils"; > ``` > > next, use the array funtion, the name is arrayGenerator > > ```js > ChengArray.arrayGenerator(number, content); > ``` > > | number | content | > | ------------ | ------------- | > | Array length | Array content | # Comma > - ### Number or string to comma: > > you can use this to add comma to very large number. > first, import ChengComma to your project. > > ```js > import { ChengComma } from "cheng-utils"; > ``` > > next, use the different funtion to change any type number or string to comma, like number, float, int.