diff --git a/index.js b/index.js index 04d8371..d2adc77 100644 --- a/index.js +++ b/index.js @@ -924,6 +924,10 @@ } function objEquiv (a, b) { + // type checking + if (typeof a != typeof b){ + return false; + } if (isUndefinedOrNull(a) || isUndefinedOrNull(b)) return false; // an identical "prototype" property.