3 ms·
My dumb dead-simple trick that you've probably independently invented yourself: when I want to log variables x,y,z I write console.log({x,y,z}) not console.l
by repsilat 5y ago
My dumb dead-simple trick that you've probably independently invented yourself: when I want to log variables x,y,z I write
console.log({x,y,z})
not
console.log(x,y,z)
Who needs pretty-printing, formatting libraries, string interpolation etc?
- msikora 5y agoYep, I have "invented" this myself as well :)
- andra_nl 5y agoSame here.
- NegativeLatency 5y agoAnd the old version with json.stringify