How do I remove the carriage return character (\\r) and the new line character(\\n) from the end of a string?
(\\r)
(\\n)
varName.replace(/[\r\n]/mg, '')