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

Function own

lib/helpers/resolveConfig.js:44–44  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

42 // Read only own properties to prevent prototype pollution gadgets
43 // (e.g. Object.prototype.baseURL = 'https://evil.com').
44 const own = (key) => (utils.hasOwnProp(newConfig, key) ? newConfig[key] : undefined);
45
46 const data = own('data');
47 let withXSRFToken = own('withXSRFToken');

Callers 1

resolveConfigFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected