(size, minSize)
| 137 | * @returns {boolean} true, when size is too small |
| 138 | */ |
| 139 | const isTooSmall = (size, minSize) => { |
| 140 | for (const key in size) { |
| 141 | const s = size[key]; |
| 142 | if (s === 0) continue; |
| 143 | const minSizeValue = minSize[key]; |
| 144 | if (typeof minSizeValue === "number" && s < minSizeValue) return true; |
| 145 | } |
| 146 | return false; |
| 147 | }; |
| 148 | |
| 149 | /** @typedef {Set<string>} Types */ |
| 150 |
no outgoing calls
no test coverage detected