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

Function isPlainObject

lib/index.es.js:32–41  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

30var objectCtorString = funcToString.call(Object);
31
32function isPlainObject(value) {
33 var proto = Object.getPrototypeOf(value);
34 /* istanbul ignore if */
35 if (proto === null) { // not sure when this happens, but I guess it can
36 return true;
37 }
38 var Ctor = proto.constructor;
39 return (typeof Ctor == 'function' &&
40 Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
41}
42
43function clone(object) {
44 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…