Function
hasCheck
(checks: ReadonlyArray<Check<unknown>>, id: string)
Source from the content-addressed store, hash-verified
| 1448 | } |
| 1449 | |
| 1450 | function hasCheck(checks: ReadonlyArray<Check<unknown>>, id: string): boolean { |
| 1451 | return checks.some((check) => |
| 1452 | check.annotations?.representation?.id === id || |
| 1453 | (check._tag === "FilterGroup" && hasCheck(check.checks, id)) |
| 1454 | ) |
| 1455 | } |
| 1456 | |
| 1457 | function numberToJson(checks: Checks | undefined): Link { |
| 1458 | const encodedFinite = !checks |
Tested by
no test coverage detected