sodiray / radash

Functional utility library - modern, simple, typed, powerful
https://radash-docs.vercel.app
MIT License
4.1k stars 160 forks source link

Why is cloneDeep not implemented #394

Closed codexlin closed 4 months ago

codexlin commented 4 months ago

It has a high usage rate

narukeu commented 4 months ago

JS now provides the native function structureClone(), which I think is better than any function implemented in JS.

现在新的浏览器和 Node JS 可以用 structureClone() 啊,原生 API,比 JS 实现一个要好多了。

codexlin commented 4 months ago

JS now provides the native function structureClone(), which I think is better than any function implemented in JS.

现在新的浏览器和 Node JS 可以用 structureClone() 啊,原生 API,比 JS 实现一个要好多了。

嗯 ,structuredClone()基本上能满足深拷贝的需求了