21/11/2013 Development / java script

Eh isso mesmo, console.table, ele renderiza os dados no formato de uma tabelinha.

function Person(firstName, lastName, age) { this.firstName = firstName; this.lastName = lastName; this.age = age; }

var family = {};
family.mother = new Person("Susan", "Doyle", 32);
family.father = new Person("John", "Doyle", 33);
family.daughter = new Person("Lily", "Doyle", 5);
family.son = new Person("Mike", "Doyle", 8);

console.table(family, ["firstName", "lastName", "age"]);

Espero que sirva!