(value)
| 30 | var objectCtorString = funcToString.call(Object); |
| 31 | |
| 32 | function 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 | |
| 43 | function clone(object) { |
| 44 | var newObject; |
no outgoing calls
no test coverage detected
searching dependent graphs…