Convert newlines to specified element
convertNewlines('Hello\nworld!') // 'Hello world!' Copy
convertNewlines('Hello\nworld!') // 'Hello world!'
string to convert
replacement to convert newlines to
string with newlines converted to specified element
Convert newlines to specified element
Example