param selector export function findElem ( selector ) { return document . querySelector ( selector ) as HTMLElement ; } param data export function maxInList ( data ) { return data . reduce ( ( p , c ) => Math . max ( c [ 1 ] ?? p , p ) , 0 ) ; }