All files load.js

90% Statements 18/20
80% Branches 4/5
100% Functions 1/1
90% Lines 18/20

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 238x 8x 8x 9x 9x 2x 2x 2x 9x     9x 9x 8x 8x 1x 1x 1x 1x 1x      
function load ( search ) {
    let result;
    search.forEach ( item => {
                let type = typeof ( item );
                if ( type === 'function' ) {
                            item = item ()
                            type = typeof ( item )
                    }
                if ( type == null ) {  
                            result = null
                            return
                    }            
                result = item
        }) // for each search
    return result
} // load func.
 
 
 
export default load