DenoDDeno
Powered by
NeTTN
Denoβ€’3y agoβ€’
7 replies
NeTT

Custom console.log formatting for a class/object

Is there a way to change the way an object/class is printed in the console?

For example, instead of
[1, 2, 3, 4]
[1, 2, 3, 4]
, I want the particular object to be printed as
[1, 2
 3, 4]
[1, 2
 3, 4]
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

console.log styling
ZyPAZZyPA / help
16mo ago
console.log in a worker - capture or hide output?
benjamnBbenjamn / help
3y ago
TTY vs console.log vs stdin and setRaw for dummies?
rauniorooRraunioroo / help
4y ago