get-longest-word

v2.1.1arrow_drop_down
v2.1.1
v2.1.0
v2.0.9
v2.0.8
v2.0.6
v2.0.5
v2.0.1
v1.1.1
v1.1.0
v1.0.8
STATUS
Passing
DOWNLOADS
1,371
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
541 B
return longest word in text
1 contributor
Install get-longest-word as a package?
Copied
npm i @bit/joshk.jotils.get-longest-word
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
No preview available
modifieddraft
chevron_left
chevron_right
getLongestWord (
text:string
) : string

return longest word in text

Example
import getLongestWord from '@bit/joshk.jotils.get-longest-word'
export default getLongestWord('abc abcd abcde') // => abcde
Argument
text: string

text

Returns
string

longest word

Test Summary

getLongestWord check return the longest word

Pass
Help and resources