ui
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
'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);
|
||||
};
|
||||
Reference in New Issue
Block a user