remove all new lines from a string (do not mutate the string but return new instance)

Use in your code Learn more
bit import bit.utils/string/remove-new-lines

removeNewLines (str:string) : string

remove all new lines from a string (do not mutate the string but return new instance)

Argument

str: string

Returns

string

Test Summary

remove-new-lines the component should existPass
remove-new-lines should remove all new lines from a stringPass