github-pages-deploy-action/node_modules/core-js-pure/es/instance/bind.js

9 lines
261 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
var bind = require('../function/virtual/bind');
var FunctionPrototype = Function.prototype;
module.exports = function (it) {
var own = it.bind;
return it === FunctionPrototype || (it instanceof Function && own === FunctionPrototype.bind) ? bind : own;
};