I have a use case where I want to control all the char in the bracket to uppercase.
For example, if there's a string Laugh out Loud (lol)
I want to convert it to Laugh Out Loud (LOL)
something like this, Where applying in a string first letter to be cap and if bracket then it should all convert into all caps.
Few examples:
Point of view (pov)
to Point Of View (POV)
What the hell
to What The Hell
it should also work if only string without brackets.
how can I achieve this in JS?
I am able to achieve it to put all the letter caps
_.startCase(_.toLower('Point of view (pov)'))
The result is Point Of View (pov)