TIL verbose console logging
Don't
$ console.log(name, surname)
> Jane Doe
Do
$ console.log({ name, surname })
> {name: "Jane", surname: "Doe"}
This works due to ES2015 shorthand object properties.
I code dreams™
$ console.log(name, surname)
> Jane Doe
$ console.log({ name, surname })
> {name: "Jane", surname: "Doe"}
This works due to ES2015 shorthand object properties.