zspecza / common-tags

🔖 Useful template literal tags for dealing with strings in ES2015+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

LucianBuzzo opened this issue · comments

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.