Function.prototype.bind1 = function () {
        // const args = Array.from(arguments);
        const args = Array.prototype.slice.call(arguments);
        const target = args.shift();
        const self = this;
        return  function () {
            const newArgs = Array.from(arguments);
            return self.apply(target, [...args, ...newArgs])
        }
}

 

相关文章:

  • 2021-05-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-03-20
相关资源
相似解决方案