Last active
November 9, 2015 21:19
-
-
Save wmdmark/618e22504c4790bd2085 to your computer and use it in GitHub Desktop.
This function takes a list, returns a string, and is awesome.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
oxfordCommatize = (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