@test_user11/reverse-sentence
v0.1.2
Published
"Reverses a sentence."
Downloads
5
Readme
reverse-sentence
Reverses the words of a sentence.
Install
npm install @test_user11/reverse-sentence
API
require("reverse-sentence") => Function
reverse(sentence) => String
Example
const reverseSentence = require("reverse-sentence");
// or
import reverseSentence from "reverse-sentence";
const sentence = "Hello Beth!";
const reversed = reverseSentence(sentence);
console.log(reversed) // Beth! Hello
License
MIT