MCPcopy
hub / github.com/axios/axios / getSafeProp

Function getSafeProp

lib/utils.js:59–60  ·  view source on GitHub ↗
(obj, prop)

Source from the content-addressed store, hash-verified

57 * @returns {*} The resolved value, or undefined when unsafe/absent
58 */
59const getSafeProp = (obj, prop) =>
60 obj != null && hasOwnInPrototypeChain(obj, prop) ? obj[prop] : undefined;
61
62const kindOf = ((cache) => (thing) => {
63 const str = toString.call(thing);

Callers

nothing calls this directly

Calls 1

hasOwnInPrototypeChainFunction · 0.85

Tested by

no test coverage detected