Share your code. Components are building blocks, you are the architect.

string/remove-new-lines
v1.0.0
1.0.0
0.0.1
Contributors
Gravatar for undefined
bit
0
MIT
PUBLIC
1
0     DEPENDENCIES
Build: pass
BuildPass
Build Status: pass

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

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set @bit:registry https://node.bitsrc.io
Use string/remove-new-lines in your project
npm i @bit/bit.utils.string.remove-new-lines
Copied

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