string-rev
v1.0.0
Published
Reverse a string
Downloads
1
Readme
string-rev
Reverse a string
Features
Install
npm install --save string-rev
Usage
const sReverse = require('string-rev');
sReverse('123');
//=>'321'
sReverse('abcdef');
//=> 'fedcba'
sReverse('madam');
//=> 'madam'
sReverse(); // without parametr this function will throw a type error.
//=> TypeError: expects a string got undefined
Author
Prosen Ghosh [email protected]
License
- MIT