News for hackers. Stuff that matters.
Re:Console.table() by jayrhynas on Thursday June 14, 2018 @09:06AM (#17311334)
That's due to a shorthand added in ES2015 that lets you construct an object where keys are equal to the name of the variable. So that's short for

    console.log({ a: a, b: b })
and then the console just prints out the new object.

There are no comments on this comment yet.