9 lines
201 B
JavaScript
9 lines
201 B
JavaScript
|
'use strict';
|
||
|
|
||
|
module.exports = function implode(key, glue) {
|
||
|
if (glue === undefined) {
|
||
|
return this.items.join(key);
|
||
|
}
|
||
|
|
||
|
return new this.constructor(this.items).pluck(key).all().join(glue);
|
||
|
};
|