TIL: console.table

console.table works in Node too. Pass it an array of objects and it renders a formatted table in your terminal instead of a nested object dump.

const users = [
  { name: "Alice", role: "admin" },
  { name: "Bob", role: "editor" },
  { name: "Carol", role: "viewer" },
];

console.table(users);

Good for debugging API responses, database rows, or CLI output. There's an optional second argument to filter columns: console.table(users, ["name"]).