( key: string, scopeSettings: Settings, )
| 285 | * Check if a setting exists in the original settings file for a scope |
| 286 | */ |
| 287 | export function settingExistsInScope( |
| 288 | key: string, |
| 289 | scopeSettings: Settings, |
| 290 | ): boolean { |
| 291 | const path = key.split('.'); |
| 292 | const value = getNestedValue(scopeSettings as Record<string, unknown>, path); |
| 293 | return value !== undefined; |
| 294 | } |
| 295 | |
| 296 | /** |
| 297 | * Recursively sets a value in a nested object using a key path array. |
no test coverage detected