I currently have the following string with me
var docPath="\\\\Server\Users\Files\Order\file1.pdf"
Where in I need to replace the single backslashes to two back slashes in my ionic 3 mobile application
like this var docPath="\\\\Server\\Users\\Files\\Order\\file1.pdf"
This is what Ive tried so far
docPath=docPath.replace('\\', "\\\\")
which doesn't change anything.