remove-new-lines

v1.0.0arrow_drop_down
v1.0.0
v0.0.1
STATUS
Passing
DOWNLOADS
26
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
494 B
remove all new lines from a string (do not mutate the string but return new instance)
2 contributors
Install remove-new-lines as a package?
Copied
npm i @bit/bit.utils.string.remove-new-lines
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
chevron_left
chevron_right
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 exist

Pass

remove-new-lines should remove all new lines from a string

Pass
Help and resources