// 方法1
function curry (fn, args) {
const length = fn.length
const args = args || []
return function () {
const _args = Array.prototype.slice.call(arguments)
Array.prototype.push.apply(args, _args);
if (args.length
JS实现curry(柯里化)的四种简单方式
最新推荐文章于 2025-03-10 09:21:31 发布