join-sentences
v1.0.0-rc.1
Published
Join an array of sentences, adding punctuation when missing.
Downloads
4
Maintainers
Readme
join-sentences
$ npm install --save join-sentences
import joinSentences from 'join-sentences';
// const joinSentences = require('join-sentences');
const sentencesArray = [
'Will it ever stop?',
"Yo, I don't know",
"Turn off the lights and I'll glow!",
'To the extreme, I rock a mic like a vandal,',
'light up a stage and wax a chump like a candle',
];
console.log(joinSentences(sentencesArray));
// => Will it ever stop? Yo, I don't know. Turn off the lights and I'll glow! To the extreme, I rock a mic like a vandal, light up a stage and wax a chump like a candle.