Ensure or discover if Oxford commas are being used in English language text.
import { ensureOxfordCommas, isMissingOxfordCommas } from 'ensure-oxford-commas';
ensureOxfordCommas('Please choose between red, green and blue.');
ensureOxfordCommas('Please choose between red, green, and blue.');
isMissingOxfordCommas('Please choose between red, green and blue.');
isMissingOxfordCommas('Please choose between red, green, and blue.');