src/helpers/getProp.ts
Showing 1 of 1 total issue
Function getValue
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring. Open
Open
function getValue(holder: Record<Key, unknown>, propParts: Key[]): unknown { let result: unknown = holder while (propParts.length && (isObject(result) || isArray(result))) { const propPart = propParts.shift() as Key
- Read upRead up