Join a list
Join a list in a nice human friendly way.
$ component install component/join
should default to "and".
join'foo' 'bar'shouldequal'foo and bar';
join 'and'shouldequal'';join'foo' 'and'shouldequal'foo';join'foo' 'bar' 'and'shouldequal'foo and bar';join'foo' 'bar' 'baz' 'or'shouldequal'foo, bar or baz';
should remove comma with less than 3 items.
join ', or'shouldequal'';join'foo' ', or'shouldequal'foo';join'foo' 'bar' ', or'shouldequal'foo or bar';
should join with 3 or more items.
join'foo' 'bar' 'baz' ', and'shouldequal'foo, bar, and baz';