bench/lib/benchmark.js
function join(object, separator1, separator2) {
    var result = [],
        length = (object = Object(object)).length,
        arrayLike = length === length >>> 0;

    separator2 || (separator2 = ': ');
    each(object, function(value, key) {
      result.push(arrayLike ? value : key + separator2 + value);
    });
    return result.join(separator1 || ',');
  }
function join(object, separator1, separator2) {
    var result = [],
        length = (object = Object(object)).length,
        arrayLike = length === length >>> 0;

    separator2 || (separator2 = ': ');
    each(object, function(value, key) {
      result.push(arrayLike ? value : key + separator2 + value);
    });
    return result.join(separator1 || ',');
  }
function join ( object , separator1 , separator2 ) { var result = [ ] , length = ( object = Object ( object ) ) . length , arrayLike = length === length >>> 0 ; separator2 || ( separator2 = ': ' ) ; each ( object , function ( value , key ) { result . push ( arrayLike ? value : key + separator2 + value ) ; } ) ; return result . join ( separator1 || ',' ) ; }
Creates a string of joined array values or object key-value pairs.

@static
@memberOf Benchmark
@param {Array|Object} object The object to operate on.
@param {String} [separator1=','] The separator used between key-value pairs.
@param {String} [separator2=': '] The separator used between keys and values.
@returns {String} The joined result.
Creates a string of joined array values or object key - value pairs .