Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Join an array of sentences, adding punctuation when missing.

Resources

License

Packages

No packages published