1.0.2 • Published 5 years ago

listformat v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

ListFormat Ponyfill

This is a simple ponyfill for Intl.ListFormat.

Call it with an Array of strings, and it'll reduce them down to one string in a list format:

import listFormat from 'listFormat'
listFormat(['a', 'b', 'c']) === 'a, b, and c'

If Intl.ListFormat is available on the engine you're running, it'll use that.

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago