mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 05:05:47 +01:00
55 lines
1.1 KiB
Markdown
55 lines
1.1 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [bitburner](./bitburner.md) > [Singularity](./bitburner.singularity.md) > [getCompanyPositions](./bitburner.singularity.getcompanypositions.md)
|
||
|
|
||
|
## Singularity.getCompanyPositions() method
|
||
|
|
||
|
Get List of Company Positions.
|
||
|
|
||
|
**Signature:**
|
||
|
|
||
|
```typescript
|
||
|
getCompanyPositions(companyName: string): JobName[];
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| companyName | string | Name of company to get the position list for. Must be an exact match. |
|
||
|
|
||
|
**Returns:**
|
||
|
|
||
|
[JobName](./bitburner.jobname.md)<!-- -->\[\]
|
||
|
|
||
|
The position list if the company name is valid.
|
||
|
|
||
|
## Remarks
|
||
|
|
||
|
RAM cost: 2 GB \* 16/4/1
|
||
|
|
||
|
This function will return a list of positions at a specific company.
|
||
|
|
||
|
This function will return the position list if the company name is valid.
|
||
|
|
||
|
## Example 1
|
||
|
|
||
|
|
||
|
```js
|
||
|
// NS1:
|
||
|
var COMPANY_NAME = "Noodle Bar";
|
||
|
|
||
|
var jobList = singularity.getCompanyPositions(COMPANY_NAME);
|
||
|
```
|
||
|
|
||
|
## Example 2
|
||
|
|
||
|
|
||
|
```js
|
||
|
// NS2:
|
||
|
const COMPANY_NAME = "Noodle Bar";
|
||
|
|
||
|
let jobList = ns.singularity.getCompanyPositions(COMPANY_NAME);
|
||
|
```
|
||
|
|