[Webkit-unassigned] [Bug 38664] Web Inspector: add a "table" method to console, to allow output of tabular data

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon May 31 06:04:08 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=38664





--- Comment #14 from Timothy Hatcher <timothy at apple.com>  2010-05-31 06:04:06 PST ---
(In reply to comment #13)
> Jumping in with a small comment: I rarely operate matrices (array2Ds). But I use arrays of objects a lot. Having a convenient way of dumping arrays of objects in a user-friendly manner would be handy. So I would expect console.table to be used for arrays of objects in 99% of cases. Hence, I would form an API as:
> 
> console.table(objectsArray, propertyName1, propertyName2, propertyName3, ...) or
> console.table(objectsArray, [propertyName1, propertyName2, propertyName3)
> 
> providing no property names should dump all of the own properties (united by or, not by and).

I agree, being able to limit what properties are shown is needed, otherwise you could never use this to show DOM objects (because they have tons of properties.)

Again, arrays are just objects with numeric properties…

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list