Current File : /home/tradevaly/www/node_modules/collect.js/src/methods/implode.js
'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);
};