(input: any, defaultValue: string)
| 378 | } |
| 379 | |
| 380 | function getStringFromInput(input: any, defaultValue: string): string { |
| 381 | if (typeof input === "string") { |
| 382 | return helper.replaceImgTagByAlt(input); |
| 383 | } else if (typeof input === "number") { |
| 384 | return input.toString(); |
| 385 | } |
| 386 | return defaultValue; |
| 387 | } |
| 388 | |
| 389 | function getStringArrayFromInput( |
| 390 | name: string, |
no outgoing calls
no test coverage detected