We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f6d1c commit 5ad5ac9Copy full SHA for 5ad5ac9
src/index.ts
@@ -23,7 +23,7 @@ function mq<
23
) as unknown as (keyof MediaQueries<QueryNames>)[];
24
mediaQueryNames.unshift("default" as any);
25
const namesLen = mediaQueryNames.length;
26
- let i = 0;
+
27
/**
28
* A utility for adding media queries and breakpoints to Dash styles
29
*
@@ -44,9 +44,9 @@ function mq<
44
} else {
45
let css = "";
46
47
- for (i = 0; i < namesLen; i++) {
+ for (let i = 0; i < namesLen; i++) {
48
const key = mediaQueryNames[i];
49
- if (key in queryName) {
+ if (queryName[key] !== void 0) {
50
let value = queryName[key];
51
value =
52
!value || typeof value === "string"
0 commit comments