mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-28 11:57:07 +02:00
Initial commit for company code refactor. Split out all components into separate files and converted to typescript
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// Modified version of Object.assign() that prevents you from
|
||||
// accidentally modifying the 'target' (first argument)
|
||||
export function SafeObjectAssign(...args: any[]) {
|
||||
const argsCopy: any[] = Array.from(arguments);
|
||||
argsCopy.unshift({});
|
||||
Object.assign.apply(null, argsCopy);
|
||||
}
|
||||
Reference in New Issue
Block a user