(contentType?: string)
| 1 | export function isJSON(contentType?: string): boolean { |
| 2 | return contentType?.toLowerCase().includes('application/json') || false; |
| 3 | } |
| 4 | |
| 5 | export function isXML(contentType?: string): boolean { |
| 6 | return contentType?.toLowerCase().includes('application/xml') || false; |