Feature: `toSwapCase / swapCase`
vorillaz opened this issue · comments
Theodore Vorillas commented
Swaps lowercase to uppercase and vice versa for the input text.
Example usage
import toSwapCase from '@plexis/to-swap-case';
toSwapCase('Hello WORLD');
// => 'hELLO world'
toSwapCase('123 toys');
// => '123 toys'
Aliases
import toSwapCase from '@plexis/to-swap-case';
import {toSwapCase, swapCase} from 'plexis';
Kmicato commented
So we dont swap cases if string starts with anything other than a letter?
Theodore Vorillas commented
@Tobenna-KA You can just ignore everything that's not a letter.
Zola commented
This is a good one, brainstorm time!
Kmicato commented
cool, shouldn't take long
Theodore Vorillas commented
@Tobenna-KA @nowtryz Pull requests are welcome, also if you want any additional feedback or guideline you can take a look at the documentation or even ping me directly.
Theodore Vorillas commented
Zola commented
Yeah, I'm on a good way I think, can I have a complex string to test, please?