UNPKG

@web3r/flowerkit

Version:

A collection of more than 60 often used utility JS functions that simplify frontend development.

13 lines 532 B
/** * Gets result of testing of a CSS media query * @param str{String} - source media query string * @return {boolean} * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Testing_media_queries * @example * // How to check if user device has portrait or landscape orientation? * const mediaQuery = "(orientation: portrait)"; * const isPortrait = isMediaQuery(mediaQuery); * console.log(isPortrait); // => false */ export function isMediaQuery(str: string): boolean; //# sourceMappingURL=index.d.ts.map