1 contributor
Like
Install letter-count as a package?
Copied
npm i @bit/joshk.jotils.letter-count
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
letterCount (
text:
string
,letter:
string
,ignorecasesensitive:
) : boolean
number
count number of letter in a string
Examples
Arguments
text:
string
value
letter:
string
value to count
ignorecasesensitive:
boolean
ignore case sensitive if true
Returns
number
number
Test Summary
letterCount return the number of time that character appears in a string | Pass |
letterCount return the number of time that character appears in a string with no casesensitive | Pass |
letterCount return the number of time that character appears in a string with casesensitive | Pass |