Loading video...

Video Failed to Load

Go Home

Going weirdly deep on console.log

125,416 views • 2 years ago •via X (Twitter)

10 Comments

Ben Holmes's profile picture
Ben Holmes2 years ago

On today's episode of "Matt shows me something that changes my life forever:"

Erik Rasmussen 👨‍💻🇺🇸🇪🇸's profile picture
Erik Rasmussen 👨‍💻🇺🇸🇪🇸2 years ago

What’s that? Never used it.

tyrant lizard prince's profile picture
tyrant lizard prince2 years ago

if you have to pass in that much config on every log doesn't it make sense to just use a logger

João Vitor Zaniolo's profile picture
João Vitor Zaniolo2 years ago

Hey Matt, what software are you using for the Shure mic on MacOS? I have the same mic and I'm starting to record some videos too

Matt Pocock's profile picture
Matt Pocock2 years ago

None! Just the raw output

François Best - 🦋's profile picture
François Best - 🦋2 years ago

I use console.dir all the time, as it also works on the browser (no imports needed).

Kenny Fellows's profile picture
Kenny Fellows2 years ago

Just FYI, you can actually pass `null` to the `depth` option instead of `Infinity`, and it will accomplish the same thing.

Dylanwoo's profile picture
Dylanwoo2 years ago

I think we can directly use console.dir(obj, {depth: null}) ?

Matt Pocock's profile picture
Matt Pocock2 years ago

Yes, as mentioned

VPetar's profile picture
VPetar2 years ago

I really love this background you've got now. ^_^ Oh, yes, dir's old topic for me, just wanted to compliment the background. :D

Related Videos