MCPcopy Create free account
hub / github.com/ampproject/amphtml / isFormDataWrapper

Function isFormDataWrapper

src/form-data-wrapper.js:33–36  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

31 * @return {boolean} True if the object is a FormDataWrapper instance.
32 */
33export function isFormDataWrapper(o) {
34 // instanceof doesn't work as expected, so we detect with duck-typing.
35 return !!o && typeof o.getFormData == 'function';
36}
37
38/**
39 * A polyfill wrapper for a `FormData` object.

Callers 4

toStructuredCloneableFunction · 0.90
setupJsonFetchInitFunction · 0.90
fetch_Method · 0.90
test-amp-form.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected