(total: number, part: number)
| 383 | }; |
| 384 | |
| 385 | export const getPercentage = (total: number, part: number): number => { |
| 386 | if (total === 0) { |
| 387 | return 0; |
| 388 | } |
| 389 | return Math.round((part / total) * 100); |
| 390 | }; |
| 391 | |
| 392 | export const getFirstQueryParam = ( |
| 393 | queryParam: string | string[] | undefined, |
no outgoing calls
no test coverage detected