(sizes)
| 352 | * @returns {boolean} true, if there are sizes > 0 |
| 353 | */ |
| 354 | const hasNonZeroSizes = (sizes) => { |
| 355 | for (const key of /** @type {SourceType[]} */ (Object.keys(sizes))) { |
| 356 | if (sizes[key] > 0) return true; |
| 357 | } |
| 358 | return false; |
| 359 | }; |
| 360 | |
| 361 | /** |
| 362 | * Returns the combine sizes. |