Function
stringArgOrNull
(
values: Record<string, JsonPrimitive | undefined>,
name: string,
)
Source from the content-addressed store, hash-verified
| 601 | }; |
| 602 | |
| 603 | function stringArgOrNull( |
| 604 | values: Record<string, JsonPrimitive | undefined>, |
| 605 | name: string, |
| 606 | ): string | null { |
| 607 | const arg = values[name]; |
| 608 | if (arg == null || arg === "") return null; |
| 609 | return `${arg}`; |
| 610 | } |
| 611 | |
| 612 | function stringArg(values: Record<string, JsonPrimitive | undefined>, name: string): string { |
| 613 | const arg = stringArgOrNull(values, name); |
Tested by
no test coverage detected