(total: number, part: number)
| 395 | }; |
| 396 | |
| 397 | export const getPercentage = (total: number, part: number): number => { |
| 398 | if (total === 0) { |
| 399 | return 0; |
| 400 | } |
| 401 | return Math.round((part / total) * 100); |
| 402 | }; |
| 403 | |
| 404 | export const getFirstQueryParam = ( |
| 405 | queryParam: string | string[] | undefined, |
no outgoing calls
no test coverage detected