show team kills
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
export function getObjectEntryByKey(key: string, data: { [key: string]: any }): any | undefined {
|
||||
let entry = data;
|
||||
for (const part of key.split('.')) {
|
||||
entry = entry[part]
|
||||
entry = entry[part];
|
||||
if (entry === null || typeof entry !== 'object') return entry;
|
||||
}
|
||||
return entry;
|
||||
|
||||
Reference in New Issue
Block a user