(value)
| 35 | var objectCtorString = funcToString.call(Object); |
| 36 | |
| 37 | function 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 | |
| 48 | function clone(object) { |
| 49 | var newObject; |
no outgoing calls
no test coverage detected
searching dependent graphs…