Sometimes, a lot of information is being printed into the console and it’s hard to see what’s what.
Instead of console.log(foo), try console.log({ foo }).
> const foo = 'foo';
> console.log(foo)
"foo"
> console.log({ foo })
{foo: "foo"}
Sometimes, a lot of information is being printed into the console and it’s hard to see what’s what.
Instead of console.log(foo), try console.log({ foo }).
> const foo = 'foo';
> console.log(foo)
"foo"
> console.log({ foo })
{foo: "foo"}