mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-18 13:43:49 +01:00
26 lines
608 B
Markdown
26 lines
608 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [args](./bitburner.ns.args.md)
|
|
|
|
## NS.args property
|
|
|
|
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:
|
|
|
|
```js
|
|
args.length
|
|
```
|
|
WARNING: Do not try to modify the args array. This will break the game.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
readonly args: any[];
|
|
```
|
|
|
|
## Remarks
|
|
|
|
0 GB
|
|
|