All files / src/preds isFn.js

0% Statements 0/3
0% Branches 0/3
0% Functions 0/1
0% Lines 0/3
1 2 3 4 5 6 7 8 9 10 11                     
function isFunction( x ) {
  var getType = {};
  // (x || false) guarantees returning of boolean type
  return ( x || false ) &&
   [ '[object Function]', '[object GeneratorFunction]' ].indexOf(
    getType.toString.call( x )
   ) >= 0;
}
 
module.exports = isFunction;