News for hackers. Stuff that matters.
Re:Node.js 16 Available Now by junon on Wednesday April 21, 2021 @09:01AM (#26889080)
const sleep = ms => new Promise(r => setTimeout(r, ms));

It doesn't need to be that tricky.

Re:Node.js 16 Available Now by eloff on Wednesday April 21, 2021 @01:44PM (#26892983)
I get that the arrow function notation is less verbose, but I disagree with calling function syntax "tricky". It really doesn't matter much. You need the type on ms though (if using typescript), and export.