jsmp-infra-awesome-functions
v1.0.1
Published
Set of functions for working with arrays and strings.
Readme
Set of functions for working with arrays and strings.
Available options:
- processArray(['2', '1'], 'sort') - sorts array as string,
- processArray([1, 2, 3], 'join', 4, 5) - joins rest of the arguments to the base array,
- processArray([1, 2, 3], 'split', 1) - splits array into smaller depends on third argument, in this case will return [[1], [2], [3]],
- processString('qwerty', 'upper') - converts string to lowercase,
- processString('QWERTY', 'lower') - converts string to uppercase,
- processString('qwe', 'join', 'r', 't', 'y') - joins rest of the arguments to the base string.
