refactor(all): strict boolean conditions

This commit is contained in:
Manu Mtz.-Almeida
2018-08-31 18:59:09 +02:00
parent f383ebdf13
commit ba2230510e
96 changed files with 983 additions and 955 deletions

View File

@ -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];