MCPcopy
hub / github.com/GitbookIO/gitbook / isFormData

Function isFormData

packages/react-openapi/src/contentTypeChecks.ts:33–35  ·  view source on GitHub ↗
(contentType?: string)

Source from the content-addressed store, hash-verified

31}
32
33export function isFormData(contentType?: string): boolean {
34 return !!contentType && contentType.toLowerCase().includes('multipart/form-data');
35}
36
37export function isPlainObject(value: unknown): boolean {
38 return typeof value === 'object' && value !== null && !Array.isArray(value);

Callers 2

getCurlBodyFunction · 0.90
code-samples.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected