1.0.0 • Published 7 years ago

string-rev v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

string-rev

Reverse a string

npm license github-issues

travis-status stars forks

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