Skip to content

Instantly share code, notes, and snippets.

View flamewow's full-sized avatar
🐈

Ilya Moroz flamewow

🐈
View GitHub Profile
function startUpSequenceVariants(input: Record<string, string[]>): string[][] {
const result: string[][] = [];
const fulfilledDependencies = new Set<string>();
const inputKeys = Object.keys(input);
function isDependenciesFulfilled(current?: string): boolean {
const dependencies = input[current];
if (dependencies.length === 0) {
return true;