jsmp-infra-package-name
v1.1.1
Published
Good package if you have a lot of free time
Downloads
4
Maintainers
Readme
jsmp-infra-package-name
Allow you to update your strings and arrays
API
Array
const { arrayMethods } = require('jsmp-infra-package-name');
arrayMethods(array, type);
Where
- array is your array. Typeof should be 'Array'.
- type is event type
Type of event can be:
- 'increase' - Should update array with string.
- 'reduce' - Should reduce array.
- 'default' - Should return default message.
String
const { stringMethods } = require('jsmp-infra-package-name');
stringMethods(string, type);
Where
- string is your string. Typeof should be 'String'.
- type is event type
Type of event can be:
- 'increase' - Should concat your string with another string.
- 'reduce' - Should reduce string on one character.
- 'uppercase' - Should transform string to uppercase.
- 'lowercase' - Should transform string to lowercase.
- 'default' - Should return default message.