For some reason I have been unable to find a quick solution to this. All I am trying to do is add dashes to a "randomly" generated 32 character string in Javascript like so:
From: AA681EBC64F642B1AFA95EE2A5D87350
To: AA681EBC - 64F6 - 42B1 - AFA9 - 5EE2A5D87350 (added spaces for clarity)
I assume the code would look something along the lines of
String.format(randomString, {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx});
but in Javascript
Current code (using angular-random-string.js):
var value = angular.uppercase(randomString(32));