DEV Community

humanfriend22
humanfriend22

Posted on • Edited on

2 1

console.log

This post is in response to this article

Instead of the code in the article, I suggest using this one because it allows multiple arguments:

const log = (...args) => console.log(...args);
view raw log.js hosted with ❤ by GitHub

This was more of a tip than a post which is why there is no explanation. Hope this helped!

Top comments (0)

Image of Datadog

Create and maintain end-to-end frontend tests

Learn best practices on creating frontend tests, testing on-premise apps, integrating tests into your CI/CD pipeline, and using Datadog’s testing tunnel.

Download The Guide

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay