Skip to content

Commit

Permalink
Fixed toString call
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Wolf committed Nov 15, 2017
1 parent 51c9014 commit 1a19dca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -245,7 +245,7 @@ function arrObjKeys (obj, inspect) {
// Returns the object's constructor name or null if it is a plain object
// or doesn't have a prototype.
function getTypeString(o) {
if (Object.prototype.toString(o) !== '[object Object]') return null;
if (Object.prototype.toString.call(o) !== '[object Object]') return null;
var prototype = getPrototype(o);
if (!prototype) return null;

Expand Down

0 comments on commit 1a19dca

Please sign in to comment.