The string from which to remove new line characters.
The string to replace new line characters with. Default is an empty string.
strRemoveNewLines('Hello\nWorld');;
//=> 'HelloWorld'
const str = 'Hello\nWorld';
const result = strRemoveNewLines(str, ' ');
console.log(result); // 'Hello World'
Generated using TypeDoc
Removes all new line characters from a string.