MediaQueryList - Web APIs | MDN

A MediaQueryList object stores information on a media query applied to a document, with support for both immediate and event-driven matching against the state of the document.