We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51c9014 commit 1a19dcaCopy full SHA for 1a19dca
index.js
@@ -245,7 +245,7 @@ function arrObjKeys (obj, inspect) {
245
// Returns the object's constructor name or null if it is a plain object
246
// or doesn't have a prototype.
247
function getTypeString(o) {
248
- if (Object.prototype.toString(o) !== '[object Object]') return null;
+ if (Object.prototype.toString.call(o) !== '[object Object]') return null;
249
var prototype = getPrototype(o);
250
if (!prototype) return null;
251
0 commit comments