* Whether one or more media queries match the current viewport size. * @param value One or more media queries to check. * @returns Whether any of the media queries match.
(value: string | readonly string[])
| 61 | * @returns Whether any of the media queries match. |
| 62 | */ |
| 63 | isMatched(value: string | readonly string[]): boolean { |
| 64 | const queries = splitQueries(coerceArray(value)); |
| 65 | return queries.some(mediaQuery => this._registerQuery(mediaQuery).mql.matches); |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Gets an observable of results for the given queries that will emit new results for any changes |
no test coverage detected