Sunny-117 / js-challenges

✨✨✨ Challenge your JavaScript programming limits step by step
https://juejin.cn/column/7244788137410560055
2k stars 236 forks source link

bind #498

Open 601odd opened 1 year ago

601odd commented 1 year ago

_mybind函数参数没有应用到必包函数里

Function.prototype._mybind = function (thisArg, ...arg1) { let fn = this return function (...arg2) { return fn._myCall(thisArg, ...arg1, ...arg2) } }