1.0.0 • Published 5 years ago
@mcansh/oxford-comma v1.0.0
oxford-comma
Convert an array to an oxford comma string based on the Intl.ListFormat api
Install
$ npm install @mcansh/oxford-comma
Usage
const oxfordComma = require('@mcansh/oxford-comma');
oxfordComma(['Motorcycle', 'Bus', 'Car']);
//=> 'Motorcycle, Bus, and Car
Created by
License
MIT
1.0.0
5 years ago