MCPcopy
hub / github.com/axios/axios / own

Function own

lib/defaults/index.js:11–11  ·  view source on GitHub ↗
(obj, key)

Source from the content-addressed store, hash-verified

9import formDataToJSON from '../helpers/formDataToJSON.js';
10
11const own = (obj, key) => (obj != null && utils.hasOwnProp(obj, key) ? obj[key] : undefined);
12
13/**
14 * It takes a string, tries to parse it, and if it fails, it returns the stringified version

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected