Buckets:
| export default function buildMediaQuery(screens) { | |
| screens = Array.isArray(screens) ? screens : [screens] | |
| return screens | |
| .map((screen) => { | |
| let values = screen.values.map((screen) => { | |
| if (screen.raw !== undefined) { | |
| return screen.raw | |
| } | |
| return [ | |
| screen.min && `(min-width: ${screen.min})`, | |
| screen.max && `(max-width: ${screen.max})`, | |
| ] | |
| .filter(Boolean) | |
| .join(' and ') | |
| }) | |
| return screen.not ? `not all and ${values}` : values | |
| }) | |
| .join(', ') | |
| } | |
Xet Storage Details
- Size:
- 560 Bytes
- Xet hash:
- 0d444e909b7b903fb7bbfd971b307a3d88294518e67d40420c6e3f74ffb11519
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.