jsmp-infra-yaremenko

1.0.5 • Public • Published

How to run

1. create your package.json (run `npm init` in terminal);
2. install package (npm i jsmp-infra-yaremenko);

How to use

1. Import methods from 'jsmp-infra-yaremenko/lib/index';

Package provide 2 methods: 
    1. `modifyString()` method which modify recieve string transform option for it. 
    For example modifyString('my string', 'upper') will return 'MY STRING';
    The second should to be equal 'upper' or 'lower' if this parameter doesn't transfered the string will be 
    capitalize;
    2. `sortArray()` method which accept two arguments array and value, and return new sorted array. This method
    works only with numbers. Example invoke sortArray([10, 1, 3, 1020], 18) return [1, 3, 10, 18, 1020];

Readme

Keywords

none

Package Sidebar

Install

npm i jsmp-infra-yaremenko

Weekly Downloads

3

Version

1.0.5

License

ISC

Unpacked Size

1.28 kB

Total Files

2

Last publish

Collaborators

  • ghdev21