MCPcopy Index your code
hub / github.com/apache/pouchdb / isPlainObject

Function isPlainObject

lib/index.js:37–46  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

35var objectCtorString = funcToString.call(Object);
36
37function isPlainObject(value) {
38 var proto = Object.getPrototypeOf(value);
39 /* istanbul ignore if */
40 if (proto === null) { // not sure when this happens, but I guess it can
41 return true;
42 }
43 var Ctor = proto.constructor;
44 return (typeof Ctor == 'function' &&
45 Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
46}
47
48function clone(object) {
49 var newObject;

Callers 1

cloneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…