clean-char
v1.0.0arrow_drop_downv1.0.0
v0.0.1
STATUS
Passing
DOWNLOADS
26
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
7 years ago
SIZE
485 B
cleans the first occurence of `char` from `str` reference.
Like
Install clean-char as a package?
Copied
npm i @bit/bit.utils.string.clean-char
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
cleanChar (
str:
string
,char:
) : string
string
cleans the first occurence of char
from str
reference.
Example
Arguments
str:
string
string to perform cleaning on.
char:
string
character to clean from string
Returns
string
cleaned string.
Test Summary
#cleanChar() should clean first char | Pass |
#cleanChar() should return string | Pass |
#cleanChar() should never mutate given string reference | Pass |