entry-unbind.js 260 Bytes
Newer Older
Lalita's avatar
Lalita committed
1 2 3 4 5 6 7 8
var global = require('../internals/global');
var bind = require('../internals/function-bind-context');

var call = Function.call;

module.exports = function (CONSTRUCTOR, METHOD, length) {
  return bind(call, global[CONSTRUCTOR].prototype[METHOD], length);
};