I have displayed the name of the arrays in the UI and I'm trying to convert those as a normal sentence: Example: thisIsArrayOne, thisIsArrayTwo => should be This Is Array One, This Is Array Two.
I'm using toTitleCase
method but seems that is not working
<div>{name.toTitleCase()}</div>