function join(obj, sep) { if (arguments.length !== 2) sep = ","; var ser = ""; for (var i in obj) if (obj.hasOwnProperty(i)) ser += sep + obj[i]; return ser.slice(sep.length); }