mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-09 17:23:53 +01:00
1.1 KiB
1.1 KiB
Home > bitburner > Singularity > getCompanyPositions
Singularity.getCompanyPositions() method
Get List of Company Positions.
Signature:
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[]
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
// NS1:
var COMPANY_NAME = "Noodle Bar";
var jobList = singularity.getCompanyPositions(COMPANY_NAME);
Example 2
// NS2:
const COMPANY_NAME = "Noodle Bar";
let jobList = ns.singularity.getCompanyPositions(COMPANY_NAME);