I'm trying to return an object response from a function, but while I was debugging in the Chrome dev tools, I noticed that it had a property that it shouldn't. I removed things from the response until it was eventually just an empty object, followed immediately by a console.log:
const result = {};
console.log(result);
But it still shows up in the Chrome console with the extra property:
{
    layerId: 1
}
When I try console.log(result.layerId), it returns undefined. If I stringify it with console.log(JSON.stringify(result)), it correctly logs {}.
Does anyone know why this might be happening?