mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
fix exploit duplicate
This commit is contained in:
@@ -42,5 +42,6 @@ export function ExploitName(exploit: string): string {
|
||||
}
|
||||
|
||||
export function sanitizeExploits(exploits: Exploit[]): Exploit[] {
|
||||
return exploits.filter((e: Exploit) => Object.keys(Exploit).includes(e));
|
||||
exploits = exploits.filter((e: Exploit) => Object.keys(Exploit).includes(e));
|
||||
return [...new Set(exploits)];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user