Total Complexity | 4 |
Complexity/F | 4 |
Lines of Code | 5 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | export const fire = (name, events, scope, ...args) => ( |
||
2 | events && name && typeof events[name] === 'function' |
||
3 | ? events[name].apply(scope, args) |
||
4 | : undefined |
||
5 | ); |
||
6 |