Skip to content

Commit

Permalink
fix(getTag): (#3820)
Browse files Browse the repository at this point in the history
IE11: global `toString` can not be called as `Object.prototype.toString`, so we need to use the Object version, like done in lodash (not doing this initially was likely a simple omission)
  • Loading branch information
Haroenv committed May 27, 2019
1 parent ab6d8ba commit a7348ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/isPlainObject.ts
Expand Up @@ -8,7 +8,7 @@ function getTag(value: any): string {
return value === undefined ? '[object Undefined]' : '[object Null]';
}

return toString.call(value);
return Object.prototype.toString.call(value);
}

function isObjectLike(value: any): boolean {
Expand Down

0 comments on commit a7348ea

Please sign in to comment.