(jobs, excludeIndex)
| 91 | * @returns {string[]} job names |
| 92 | */ |
| 93 | const getJobNames = (jobs, excludeIndex) => { |
| 94 | const names = []; |
| 95 | |
| 96 | for (const [i, job] of jobs.entries()) { |
| 97 | if (i === excludeIndex) continue; |
| 98 | |
| 99 | const name = getName(job); |
| 100 | |
| 101 | if (name) names.push(name); |
| 102 | } |
| 103 | |
| 104 | return names; |
| 105 | }; |
| 106 | |
| 107 | /** |
| 108 | * Processes job name to generate a partial path for the job |