HF RL Explorer

event emitter: implement stub

event emitter: implement stub: a task in smol-software-harbor (Harbor dataset). once(event, fn) in lib/emitter.js is not implemented. Implement it: fn is called at most once, on the next emit of that event, with the emitted arguments, and is then removed. It must also be removable before it fires…

The task

`once(event, fn)` in `lib/emitter.js` is not implemented. Implement it: `fn` is called at most once, on the next `emit` of that event, with the emitted arguments, and is then removed. It must also be removable before it fires with `off(event, fn)` using the original function (see the comment on `off`), and `once`…

Part of efederici/smol-software-harbor.