# Code coverage report for lib/utils/bind.js

## Statements: 20% (1 / 5) Branches: 0% (0 / 2) Functions: 0% (0 / 2) Lines: 25% (1 / 4) Ignored: none

All files » lib/utils/ » bind.js

    1
    2
    3
    4
    5
    6
    71

     module.exports = function(callback, context) {
      if (callback.bind) return callback.bind.apply(callback, [context].concat(Array.prototype.slice.call(arguments, 2)));
      return function() {
        return callback.apply(context, arguments);
      };
    };