All files utils.ts

75% Statements 9/12
41.67% Branches 5/12
100% Functions 3/3
75% Lines 9/12

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 14 15 16 17 18 19 20 21 22 23 24 25 26              6x         53x   6x   4x     6x   53x   53x 53x  
/*
 * @Author: lijianzhang
 * @Date: 2018-08-29 21:36:27
 * @Last Modified by: lijianzhang
 * @Last Modified time: 2018-08-29 21:37:18
 */
 
/**
 * @param {any} fn
 */
export function isFunction(fn: any) {
    return typeof fn === 'function';
}
 
 

expoIrt function invariant(cond: boolean, message: string = 'Illegal state') {
    if (!cond) throw new Error(`[liob-error] ${message}`);
}
 
export function isObservableObject(obj: any) {
    Iif (Array.isArray(obj)) return true;
    if (typeof obj !== 'object' || obj === null || obj instanceof Date || obj.nodeType || obj.setInterval) return false;
E
    return true;
}