From a7348ea68db2548590907b6b19ae11eaa3f8edf7 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Mon, 27 May 2019 17:52:29 +0200 Subject: [PATCH] fix(getTag): (#3820) 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) --- src/lib/utils/isPlainObject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/utils/isPlainObject.ts b/src/lib/utils/isPlainObject.ts index dbd9262f43..00997fc201 100644 --- a/src/lib/utils/isPlainObject.ts +++ b/src/lib/utils/isPlainObject.ts @@ -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 {