compound-subject
A tiny JavaScript library for converting arrays of strings to compound subjects
Installation
Node
In your project directory:
npm install --save compound-subject
At the top of your module:
var compoundSubject = ;
Bower
In your project directory:
bower install --save compound-subject
In your HTML:
Or if you want the dev version:
compoundSubject
will be defined in the global scope (i.e. window
).
Usage
; // 'apple, banana and cherry' ; // 'apple, banana or cherry' ; // 'apple, banana, and maybe cherry' ; // 'a very crunchy Honeycrisp apple; bananas at the pinnacle of ripeness; and delectable halved Rainier cherries'