I am having an object with userGuid as property. The userGuid property has Guid value enclosed in double quotes.
I have used replace() method, but it is replacing first occurrence of a character only.
Therefore, I have used replace() method twice to remove both quotations, like below:
var UserID = criteria.userGuid.replace('"', '').replace('"', '');
Can anyone suggest the best way to replace single character in a variable?