code: function implode(pieces, glue) {
          if (validateHelpers.isArray(pieces)) {
              return pieces.join(glue || ',');
          } else if (validateHelpers.isObject(pieces)) {
              var arr = [];
              for (var o in pieces) {
                  if (object.hasOwnProperty(o)) {
                      arr.push(pieces[o]);
                  }
              }
  
              return arr.join(glue || ',');
          }
  
          return '';
      }
docs: Join array elements with glue string - PHP implode alike
  
  @category Array
  @param {object|array} pieces - The array|object to implode.  If object it will implode the values, not the keys.
  @param {string} [glue=','] - The glue
  @return {string} The imploded array|object
  @example
  implode(['Foo', 'Bar']); // 'Foo,Bar'