object current state javascript stringify code example Example: console.log object at current state console.log(JSON.parse(JSON.stringify(obj)));