Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

250 B
Raw Blame
export interface CompanionRuleSeat {
    acc: boolean;
    comp: boolean;
}

export const excessCompanionSeats = (seats: CompanionRuleSeat[]): number =>
    Math.max(0, seats.filter(seat => seat.comp).length - seats.filter(seat => seat.acc).length);