Conditions | 2 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import osPaths from '../src'; |
||
2 | |||
3 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
||
4 | function objectEntries(obj: any) { |
||
5 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
||
6 | const map: any = {}; |
||
7 | Object.keys(obj).forEach((key) => { |
||
8 | const value = obj[key]; |
||
9 | const val = typeof value === 'function' ? value() : value; |
||
10 | // eslint-disable-next-line functional/immutable-data |
||
11 | map[key] = val; |
||
12 | }); |
||
13 | return map; |
||
14 | } |
||
22 |