update specialthanks

This commit is contained in:
Vick Scarlet
2022-03-30 15:20:38 +08:00
parent 1f7434a133
commit 329c2f09c4
4 changed files with 30 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
function clone(value) {
switch(typeof value) {
case 'object':
if(value === null) return null;
if(Array.isArray(value)) return value.map(v=>clone(v));
const newObj = {};
for(const key in value) newObj[key] = clone(value[key]);