Lei OT 4 months ago
parent f1c32c5f99
commit 896fc93fa0

@ -30,6 +30,8 @@ if (!Object.fromEntries) {
/** /**
* @deprecated * @deprecated
* 废弃, 请使用 cloneDeep 或者 structuredClone * 废弃, 请使用 cloneDeep 或者 structuredClone
* @see cloneDeep
* @see structuredClone
*/ */
export function copy(obj) { export function copy(obj) {
return JSON.parse(JSON.stringify(obj)); return JSON.parse(JSON.stringify(obj));

Loading…
Cancel
Save