join-component
Join a list
Last updated 12 years ago by tjholowaychuk .
MIT · Original npm · Tarball · package.json
$ npm install join-component 
SYNC missed versions from official npm registry.

join

Join a list in a nice human friendly way.

Installation

$ component install component/join

API

join(arr)

should default to "and".

join(['foo', 'bar']).should.equal('foo and bar');

join(arr, str)

should join.

join([], 'and').should.equal('');
join(['foo'], 'and').should.equal('foo');
join(['foo', 'bar'], 'and').should.equal('foo and bar');
join(['foo', 'bar', 'raz'], 'or').should.equal('foo, bar or raz');

License

MIT

Current Tags

  • 1.1.0                                ...           latest (12 years ago)

2 Versions

  • 1.1.0                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Total 2
Today 1
This Week 1
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE