console.table method

E242833

The console.table method is a JavaScript debugging utility that displays array or object data in a formatted table within the browser or Node.js console.

All labels observed (1)

Label Occurrences
console.table method canonical 1

How this entity was disambiguated

Statements (47)

Predicate Object
instanceOf JavaScript console method
debugging utility
acceptsArgument columns
data
argumentRole columns specifies which properties or columns to include
data is the value to be displayed
availableIn Chrome developer tools
surface form: Chrome DevTools console

Edge DevTools console
Mozilla developer tools
surface form: Firefox Web Console

Node.js
surface form: Node.js REPL

Node.js
surface form: Node.js runtime

Web Inspector developer tools
surface form: Safari Web Inspector console
belongsToObject console
category console debugging API
definedInLanguage JavaScript
displayBehavior renders each array element as a row
renders each object property as a column
uses index or key as first column by default
introducedIn Google Chrome
surface form: Chrome 28

Mozilla Firefox
surface form: Firefox 34

Node.js 10
invocationContext called as a method of console object
outputFormat formatted table
primaryPurpose display tabular data for debugging
providedByEnvironment Node.js
web browsers
relatedMethod console.debug
console.dir
console.log
returnValue undefined
sideEffect writes formatted table to console output
standardStatus JavaScript console
surface form: documented in WHATWG Console Living Standard
supportsFeature column selection
nested object inspection
sorting by clicking column headers in some consoles
typicalInput Array
Array-like object
Map
Object
Set
TypedArray
arguments object
typicalUseCase compare object properties visually
debug API responses containing lists
inspect arrays of objects
usageExample console.table([{name: 'Alice', age: 30}, {name: 'Bob', age: 25}])
console.table(users, ['name', 'age'])

How these facts were elicited

Referenced by (1)

Full triples — surface form annotated when it differs from this entity's canonical label.

Console Standard standardizes console.table method