I have a string like this:
d3f0c3cdf363-4303-8761-8e190f054be3
but when I use this code:
const currentUserId = masterInfo.user.id.replace('-', '')
console.log('currentUserId', masterInfo.user.id.replace('-', ''))
I still get this:
currentuserId d3f0c3cdf363-4303-8761-8e190f054be3
How can I remove all instances of -
?