News for hackers. Stuff that matters.
Re:Ask HN: What are some “10x” software product innovations ... by eyelidlessness on Wednesday March 17, 2021 @12:33AM (#26486572)
For anyone still/stuck with console debugging, “pro” tip:

JS ignores the value of every statement in a comma-separated expression except the last one. So you can do trash like this:

    const foo = (bar) => (
        console.log(bar),
        someComputationOf(bar)
    );
And log-debug without restructuring your otherwise pure function.

There are no comments on this comment yet.