(options: GetGeneratorOptions)
| 331 | * @param printDownloadProgress `boolean` to print download progress or not |
| 332 | */ |
| 333 | export async function getGenerator(options: GetGeneratorOptions): Promise<Generator> { |
| 334 | const generators = await getGenerators(options) |
| 335 | return generators[0] |
| 336 | } |
| 337 | |
| 338 | export function skipIndex<T = any>(arr: T[], index: number): T[] { |
| 339 | return [...arr.slice(0, index), ...arr.slice(index + 1)] |
no test coverage detected