3 ms·
I shortened console.log() with a function I use in development called c() function c(x){ console.log(x || "!"); } It's pretty helpful, I can q
by artursapek 15y ago
I shortened console.log() with a function I use in development called c()
function c(x){
console.log(x || "!");
}
It's pretty helpful, I can quickly throw the line c(); anywhere just to log if it happens when/if it should. And it stays out of your way, unlike alert() which is terrible and should be deprecated.