mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-07-01 10:06:01 +00:00
Completely nuked everything - starting over from scratch :)
This commit is contained in:
parent
7357cce1d4
commit
169ef72bfd
11 changed files with 19 additions and 492 deletions
|
@ -1 +0,0 @@
|
|||
export * as merge from "./object/merge";
|
|
@ -1,16 +0,0 @@
|
|||
export function recursive_merge(
|
||||
defaulted: any,
|
||||
target: any
|
||||
) {
|
||||
let output = defaulted;
|
||||
|
||||
Object.keys(target).forEach((target_key) => {
|
||||
if (typeof target_key != "object") {
|
||||
output[target_key] = target[target_key];
|
||||
} else {
|
||||
output[target_key] = recursive_merge(defaulted[target_key], target[target_key]);
|
||||
}
|
||||
});
|
||||
|
||||
return output;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue