mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
refactor(all): strict boolean conditions
This commit is contained in:
@ -11,7 +11,7 @@ export const SIZE_TO_MEDIA: any = {
|
||||
// at the breakpoint passed
|
||||
// e.g. matchBreakpoint('sm') => true if screen width exceeds 576px
|
||||
export function matchBreakpoint(win: Window, breakpoint: string | undefined) {
|
||||
if (!breakpoint) {
|
||||
if (breakpoint === undefined) {
|
||||
return true;
|
||||
}
|
||||
const mediaQuery = SIZE_TO_MEDIA[breakpoint];
|
||||
|
||||
Reference in New Issue
Block a user