diff --git a/src/decorator/typechecker/IsArray.ts b/src/decorator/typechecker/IsArray.ts index 7e5f43d7de..e1cab5bef1 100644 --- a/src/decorator/typechecker/IsArray.ts +++ b/src/decorator/typechecker/IsArray.ts @@ -7,7 +7,7 @@ export const IS_ARRAY = 'isArray'; * Checks if a given value is an array */ export function isArray(value: unknown): value is Array { - return Array.isArray(value); + return Object.prototype.toString.call(value) === '[object Array]'; } /**