0.1.0 • Published 2 years ago
@vinayakgupta88/reverse-sentence v0.1.0
reverse-sentence
Reverse the words of a sentence.
Install
npm install @vinayakgupta88/reverse-sentence
API
require("reverse-sentence") => Function
reverse(sentence) => String
Example
const reverseSentence = require("reverse-sentence");
const sentence = "Hello Vinayak!";
const reversed = reverseSentence(sentence);
console.log(reversed) // Vinayak! Hello
0.1.0
2 years ago