79371382

Date: 2025-01-20 12:57:19
Score: 1
Natty:
Report link

function nextTick(callback) {
    Promise.resolve().then(callback);
}

// Usage
nextTick(() => {
    console.log('This runs after the current tick.');
});
console.log('This runs first.');

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrew Kolev