wangbing

Results 2 comments of wangbing

1. arguments.callee() 现在已经不推荐使用,建议换一个实现方式,比如像下面这样: ```js function factorial(num) { return (function fn() { if (num { return this } } } console.log(box.getThis()()) // { user: 'zs', getThis: [Function: getThis] } ```

数组降维简单的就是遍历每一项,结合递归实现,不过现在可以用flat来实现 arr.flat(Infinity)