@leofranca/reverse-sentence
v1.0.0
Published
Reverses a provided sentence
Downloads
5
Readme
reverse-sentence
Reverses the words of a sentence.
Install
pnpm install @leofranca/reverse-sentence
API
require("reverse-sentence") => Function;
reverse(sentence) => String;
Example
import reverseSentence from "reverse-sentence";
const sentence = "Hello Beth!";
const reversed = reverseSentence(sentence);
console.log(reversed); // Beth! Hello
License
ISC