All files / utils shared.ts

100% Statements 6/6
66.67% Branches 2/3
100% Functions 1/1
100% Lines 6/6

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

1 2 3 4 5 6 7 8 9 10 11 12 13 148x   8x   8x   8x   2x   2x      
export const EMPTY_OBJECT = {};
 
export const EMPTY_STRING = '';
 
export const EMPTY_ARRAY = [];
 
export function isPrimitive(o: object): boolean {
 
    const type = typeof o;
 
    return type !== 'undefined' &&
        type !== 'object' &&
        type !== 'function';
}