Prosen-Ghosh / string-rev

Reverse a string

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Reverse a string

License:MIT License


Languages

Language:JavaScript 100.0%