npm i @ryze-digital/js-utilities --saveimport * as utils from '@ryze-digital/js-utilities';this.breakpointProvider = new utils.BreakpointProvider();
window.matchMedia(`(min-width: ${this.breakpointProvider.breakpoints.large})`).addListener(() => {
// Code gets executed when the viewport is at least "large"
});
if (window.matchMedia(`(max-width: ${this.breakpointProvider.breakpoints.medium})`).matches) {
// Condition evaluates to true, if the viewport is at most "medium"
}