Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

reverse-string

v0.0.1arrow_drop_down
v0.0.1
STATUS
Passing
DOWNLOADS
1
VISIBILITY
Public
PUBLISHED
3 years ago
SIZE
483 B
reverses the given string
1 contributor
Install reverse-string as a package?
Copied
npm i @bit/gideonshils.sample.global.reverse-string
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
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
reverseString('Hello world') // => "dlrow olleH"
modifieddraft
chevron_left
chevron_right
global/reverseString (
str:string
) : string

reverses the given string

Example
reverseString('Hello world') // => "dlrow olleH"
Argument
str: string

the string

Returns
string

the reversed string

Test Summary

#reverseString() should return “!dlrow olleH” if “Hello world!” is passed

Pass

#reverseString() should return “54321” if “12345” is passed

Pass