src/main/javascript/util/floatz.util.mediaquery.js
/**
	 * Match media query.
	 * <p>
	 *     Provides support for multiple queries combined via OR operator like in CSS.
	 *     In case of AND operator use CSS syntax "(<query>) and (<query>)".
	 * </p>
	 *
	 * @param queries One or more media queries (symbols or strings)
	 */
Match media query.

Provides support for multiple queries combined via OR operator like in CSS.
In case of AND operator use CSS syntax "() and ()".

@param queries One or more media queries (symbols or strings)
Match media query . Provides support for multiple queries combined via OR operator like in CSS . In case of AND operator use CSS syntax " () and () " . @param queries One or more media queries ( symbols or strings )
static match(...queries) {
		if (window.matchMedia) {
			let results = [];
			queries.forEach((query) => {
				results.push(window.matchMedia(query));
			});
			return results.filter((mq) => mq.matches).length > 0;
		} else {
			console.error("matchMedia not available");
		}
		return false;
	}
static match ( ... queries ) { if ( window . matchMedia ) { let results = [ ] ; queries . forEach ( ( query ) => { results . push ( window . matchMedia ( query ) ) ; } ) ; return results . filter ( ( mq ) => mq . matches ) . length > 0 ; } else { console . error ( "matchMedia not available" ) ; } return false ; }
Match media query.
Match media query .
// Execute media queries and remember results // Filter out only matches in results