import { Round , Slot } from 'shared/model/round' ; export const getLastSlotNumberInRound = ( round ) : number => Math . max ( ... ( Object . values ( round . slots ) . map ( ( slot ) => slot . slot ) ) ) ; export const isSlotNumberInRound = ( round , slotNumber ) : boolean => { return ! ! Object . values ( round . slots ) . find ( slot => slot . slot === slotNumber ) ; } ;