Code coverage report for lib/utils/bind.js

Statements: 60% (3 / 5)      Branches: 50% (1 / 2)      Functions: 50% (1 / 2)      Lines: 50% (2 / 4)      Ignored: none     

All files » lib/utils/ » bind.js
1 2 3 4 5 6 71 15          
module.exports = function(callback, context) {
  Eif (callback.bind) return callback.bind.apply(callback, [context].concat(Array.prototype.slice.call(arguments, 2)));
  return function() {
    return callback.apply(context, arguments);
  };
};