Package Exports
- join-component
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (join-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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