Grammar List
Function to display a list in a more grammatical fashion
Installation
npm install grammarlist --save
Usage
const grammarList = let people = 'John' 'Anna' 'Casey' 'Beata'let result = console // Expected output: Anna, Beata, Casey, then John
Signature
{ return :String}
Tests
Grammar List
✓ should return a string
✓ should place a default clause `and` before the final item
✓ should allow a custom clause to be used
✓ should sort the list of items by default
✓ should allow sorting to be turned off
✓ should not modify the sort order of the input
Development
Clone this repo, then run:
npm install
npm test