reverse-sentenses
v1.0.0
Published
Reverses the words of a sentence. ## Install ```sh npm install @almirph/reverse-sentence ``` ## API ```js require("reverse-sentence") => Function reverse(sentence) => String ``` ## Example ```js
Downloads
2
Readme
reverse-sentence
Reverses the words of a sentence.
Install
npm install @almirph/reverse-sentence
API
require("reverse-sentence") => Function
reverse(sentence) => String
Example
const reverseSentence = require("reverse-sentence");
const sentence = "Hello Beth!";
const reversed = reverseSentence(sentence);
console.log(reversed) // Beth! Hello
License
MIT