深拷贝, 支持基本数据类型(string, number, bigint, boolean, null, undefined, symbol), 以及(Date, RegExp, Array, Object, Map, Set, Class)
https://lllllxt.github.io/DeepClone/
npm i @lllllxt/deep-clone -S
import clone from '@lllllxt/deep-clone'
const clone = request('@lllllxt/deep-clone')
clone({a: 1, b: {c: 2}}) // => {a: 1, b: {c: 2}}
此方法是向window对象中注册一个 clone
对象
欢迎PR或提交issues 😃
This project is licensed under the MIT License