mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 00:32:51 +02:00
Companies save/loading properly. Added a utility file for Objects. Started work on Active Scripts info page. Adjusted leveling formula. Tested/fixed scripts running that have errors, seems to work fine might need proper testing later
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
//Netburner Object helper functions
|
||||
|
||||
//Returns the size (number of keys) of an object
|
||||
function sizeOfObject(obj) {
|
||||
var size = 0, key;
|
||||
for (key in obj) {
|
||||
if (obj.hasOwnProperty(key)) size++;
|
||||
}
|
||||
return size;
|
||||
}
|
||||
Reference in New Issue
Block a user