0.1.0 • Published 1 year ago
@malachi0412/reverse-sentence v0.1.0
reverse-sentence
Reverses the words of a sentence.
Install
npm install @malachi0412/reverse-sentence
API
require("reverse-sentence") => function
reverse(sentence) => String
Example
const reverseSentence = require("reverse-sentence");
const sentence = "Hello Malachi";
const reversed = reverseSentence(sentence);
console.log(reversed) // Malachi Hello
0.1.0
1 year ago