diff --git a/diff.js b/diff.js index 4cf5d62..9c2bfc3 100644 --- a/diff.js +++ b/diff.js @@ -878,7 +878,7 @@ module.Types = { // search instances... if(!type){ //type = Object - type = A.constructor + type = A != null ? A.constructor : null for(var t of types){ // leave pure objects for last... if(t === Object