0.1.0 • Published 4 years ago

@tonyye99/reverse-sentence v0.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

reverse-sentence

Reverses the words of a sentence.

Install

npm install @tonyye99/reverse-sentence

API

require("reverse-sentence") => Function

reverse(sentence) => String

Example

const reverseSentence = require("reverse-sentence");

const sentence = "Hello Tony!";

const reversed = reverseSentence(sentence);

console.log(reversed) // Tony! Hello

License

MIT

0.1.0

4 years ago