bind.js 350 B

123456789
  1. var isPrototypeOf = require('../../internals/object-is-prototype-of');
  2. var method = require('../function/virtual/bind');
  3. var FunctionPrototype = Function.prototype;
  4. module.exports = function (it) {
  5. var own = it.bind;
  6. return it === FunctionPrototype || (isPrototypeOf(FunctionPrototype, it) && own === FunctionPrototype.bind) ? method : own;
  7. };