@mrbaloch/reverse-sentence
v0.1.0
Published
Reverses the words of a sentence.
Downloads
72
Readme
reverse-sentence
Reverses the words of a sentence.
Install
npm install @mrbaloch/reverse-sentence
API
require("reverse-sentence") => Function
reverse(sentence) => String
Example
const { reverse } = require("reverse-sentence");
const sentence = "Hello Beth!";
const reversed = reverse(sentence);
console.log(reversed); // Beth! Hello
License
MIT