Skip to content

Commit 1a19dca

Browse files
author
Daniel Wolf
committed
Fixed toString call
1 parent 51c9014 commit 1a19dca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ function arrObjKeys (obj, inspect) {
245245
// Returns the object's constructor name or null if it is a plain object
246246
// or doesn't have a prototype.
247247
function getTypeString(o) {
248-
if (Object.prototype.toString(o) !== '[object Object]') return null;
248+
if (Object.prototype.toString.call(o) !== '[object Object]') return null;
249249
var prototype = getPrototype(o);
250250
if (!prototype) return null;
251251

0 commit comments

Comments
 (0)