<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>深拷贝</title>
	</head>
	<body>
		<script>
			const isObject = (data) => {
				return (
					data !== null &&
					(typeof data === "object" || typeof data === "function")
				);
			};

			const deepClone = (value) => {
				const map = new WeakMap(); // 使用WeakMap记录已处理的数据

				function _deepClone(data) {
					// 1 ------基本数据类�