Skip to content

martindale/oxford-join

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oxford-join

Build Status Coverage Status NPM Version

Join an array into a string, separated with an Oxford comma where appropriate.

Now with 100% test coverage!

Use

var join = require('oxford-join');
var invitations = ['the strippers', 'JFK', 'Stalin'];
var text = 'We invited ' + join(invitations) + '.';
> 'We invited the strippers, JFK, and Stalin.'

Contributions

We'll happily accept pull requests and improvements.

About

Join an array into a string, separated with an Oxford comma.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published