I need to convert camelcase keys to Pascal key and I got good solution from stackoverflow.
But the issue is I don't know how to exclude . in conversion.
Please find the below example:
var input= "customer.presentAddress.streetName";
Expected Output is
var output= "Customer.PresentAddress.StreetName";
PlayGround : Please click here
As per the @Hans Passant and @JamesS comments, I have rewritten the code :