Function
aliasIsBoolean
(
aliasMap: Map<string, Set<string>>,
booleanSet: Set<string>,
key: string,
)
Source from the content-addressed store, hash-verified
| 483 | } |
| 484 | |
| 485 | function aliasIsBoolean( |
| 486 | aliasMap: Map<string, Set<string>>, |
| 487 | booleanSet: Set<string>, |
| 488 | key: string, |
| 489 | ): boolean { |
| 490 | const set = aliasMap.get(key); |
| 491 | if (set === undefined) return false; |
| 492 | for (const alias of set) if (booleanSet.has(alias)) return true; |
| 493 | return false; |
| 494 | } |
| 495 | |
| 496 | function isBooleanString(value: string) { |
| 497 | return value === "true" || value === "false"; |
Tested by
no test coverage detected