Hacker News new | ask | show | jobs
by joshmanders 532 days ago
You can alias it if you're worried about shadowing.

    import { setTimeout as loiter } from "node:timers/promises";
    await loiter(500);
1 comments

Sure, and that competes with a universal idiom.

To me it's kinda like adding a shallowClone(old) helper instead of writing const obj = { ...old }.

But no point in arguing about it forever.