1.0.0 • Published 7 years ago
string-rev v1.0.0
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 prosenghosh25@gmail.com
License
- MIT
1.0.0
7 years ago