bind.js 261 B

12345678
  1. var bind = require('../function/virtual/bind');
  2. var FunctionPrototype = Function.prototype;
  3. module.exports = function (it) {
  4. var own = it.bind;
  5. return it === FunctionPrototype || (it instanceof Function && own === FunctionPrototype.bind) ? bind : own;
  6. };