8 lines
149 B
JavaScript
Raw Permalink Normal View History

2024-10-17 21:31:23 +03:00
'use strict';
module.exports = (from, to, events) => {
for (const event of events) {
from.on(event, (...args) => to.emit(event, ...args));
}
};