zspecza / common-tags

🔖 Useful template literal tags for dealing with strings in ES2015+
Other
1.99k stars 60 forks source link

Comma lists methods don't work when an array has one item #116

Closed LucianBuzzo closed 6 years ago

LucianBuzzo commented 6 years ago

Given the following code

import { oneLineCommaListsAnd } from 'common-tags'
console.log(oneLineCommaListsAnd`${['foo']}`)

I would expect the output to be foo, but the ourput is acutally andfoo.