(size, maxSize)
| 121 | * @returns {boolean} true, when size is too big |
| 122 | */ |
| 123 | const isTooBig = (size, maxSize) => { |
| 124 | for (const key in size) { |
| 125 | const s = size[key]; |
| 126 | if (s === 0) continue; |
| 127 | const maxSizeValue = maxSize[key]; |
| 128 | if (typeof maxSizeValue === "number" && s > maxSizeValue) return true; |
| 129 | } |
| 130 | return false; |
| 131 | }; |
| 132 | |
| 133 | /** |
| 134 | * Checks whether this object is too small. |
no outgoing calls
no test coverage detected