Example 1 — Basic Delay
Run a function once after a short wait.
var log = [];
_.delay(function () {
log.push("later");
}, 50);
// right away: log → []
// after ~50ms: log → ["later"] How It Works
- _.delay schedules the push for 50 ms later.
- Sync code continues; log stays empty at first.
- Timer fires →
"later"is pushed. - Same idea as official “logged later” after 1s.

