mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 10:03:48 +01:00
668 B
668 B
NS.args property
Arguments passed into the script.
Signature:
readonly args: (string | number | boolean)[];
Remarks
RAM cost: 0 GB
Arguments passed into a script can be accessed using a normal array using the [] operator (args[0], args[1], etc…).
It is also possible to get the number of arguments that was passed into a script using: 'args.length' WARNING: Do not try to modify the args array. This will break the game.