Вот вроде рабочий вариант
Object.prototype.k_string = function()
{
var res = '';
var odd = 1;
for(var next in this)
{
*!*if (!this.hasOwnProperty(next)) continue;*/!*
res += next+'='+this[next]+' ';
}
return res;
};
var h = {a:1, b:2, s:3};
console.log(h);
console.log(h.k_string());