KeriWang

Results 3 comments of KeriWang

Sorry but I got this problem too, even I has 5 errors. This is my error ``` node_modules/@jscpd/core/dist/detector.d.ts:4:39 - error TS2507: Type 'typeof EventEmitter' is not a constructor function type....

递归的写法也没有做到真正的深拷贝呀。例如我一层有一个function,只是 `=` 赋值的话,相当于这个function是浅拷贝过去的。 稍微改一下示例代码就可以发现 ``` const originObj = { name:'axuebin', sayHello:function(){ console.log('Hello World'); } } console.log('origin', originObj); // {name: "axuebin", sayHello: ƒ} const cloneObj = deepClone(originObj); cloneObj.sayHello.a = 1 console.log('clone',...

> `startVal` in `options` ? In property, equal to `endVal`