cheng-utils

0.0.5 • Public • Published

cheng-utils

Array

  • Array Generator:

    you can use this to generate the same content to mock data. first, import chengArray to your project.

    import { ChengArray } from "cheng-utils";

    next, use the array funtion, the name is arrayGenerator

    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.

    import { ChengComma } from "cheng-utils";

    next, use the different funtion to change any type number or string to comma, like number, float, int.

Package Sidebar

Install

npm i cheng-utils

Weekly Downloads

8

Version

0.0.5

License

MIT

Unpacked Size

6.59 kB

Total Files

6

Last publish

Collaborators

  • bluererere