Total Complexity | 3 |
Complexity/F | 3 |
Lines of Code | 13 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | export * from 'myrmidon'; |
||
2 | |||
3 | export function mergeConfigs(...configs) { |
||
4 | const config = {}; |
||
5 | |||
6 | for (const [ conf = {} ] of configs.reverse()) { |
||
7 | for (const key of Object.keys(conf)) { |
||
|
|||
8 | config[key] = conf[key]; |
||
9 | } |
||
10 | } |
||
11 | |||
12 | return config; |
||
13 | } |
||
14 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.