Skip to content

Instantly share code, notes, and snippets.

@wmdmark
Last active November 9, 2015 20:55
Show Gist options
  • Save wmdmark/ed96f2807393a34b033a to your computer and use it in GitHub Desktop.
Save wmdmark/ed96f2807393a34b033a to your computer and use it in GitHub Desktop.
This function takes a list, returns a string, and is awesome.
oxfordCommatize = function(list, conjuction) {
list[list.length - 1] = (conjuction + " " + list[list.length - 1])
return list.join(", ")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment