All files / app/common/utility isRecord.ts

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6146x     18x    
export default function isRecord<TKey extends string, TValue>(
    record: unknown
): record is Record<TKey, TValue> {
    return typeof record === 'object' && record !== null;
}