PK

ADDRLIN : /home/questend/public_html/domains/flaxzy.com/node_modules/collect.js/docs/api/
FLL :
Current File : /home/questend/public_html/domains/flaxzy.com/node_modules/collect.js/docs/api/join.md

# `join()`

The join method joins the collection's values with a string:

```js
collect(['a', 'b', 'c']).join(', ');
// 'a, b, c'

collect(['a', 'b', 'c']).join(', ', ', and ');
// 'a, b, and c'

collect(['a', 'b']).join(', ', ' and ');
// 'a and b'

collect(['a']).join(', ', ' and ');
// 'a'

collect([]).join(', ', ' and ');
// ''
```

[View source on GitHub](https://github.com/ecrmnn/collect.js/blob/master/src/methods/join.js)


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home