Join an array into a string, separated with an Oxford comma where appropriate.
Now with 100% test coverage!
var join = require('oxford-join');
var invitations = ['the strippers', 'JFK', 'Stalin'];
var text = 'We invited ' + join(invitations) + '.';
> 'We invited the strippers, JFK, and Stalin.'
We'll happily accept pull requests and improvements.