(total: number, part: number)
| 358 | }; |
| 359 | |
| 360 | export const getPercentage = (total: number, part: number): number => { |
| 361 | if (total === 0) { |
| 362 | return 0; |
| 363 | } |
| 364 | return Math.round((part / total) * 100); |
| 365 | }; |
| 366 | |
| 367 | export const getFirstQueryParam = ( |
| 368 | queryParam: string | string[] | undefined, |
no outgoing calls
no test coverage detected