clone:legacy

This commit is contained in:
2025-09-05 11:09:58 +09:00
commit 6103518feb
119 changed files with 41713 additions and 0 deletions

18
depth.js Normal file
View File

@@ -0,0 +1,18 @@
const depth = (n) => {
if (n > 1) {
return {
children: {
include: depth(n - 1),
},
};
} else {
return {
children: true,
};
}
};
console.log(JSON.stringify(depth(1000)));
//console.log(JSON.stringify(depth(2)))
//console.log(JSON.stringify(depth(3)))
//console.log(JSON.stringify(depth(4)))