From 0ad2efcd61a1dbdc548d74dcb16717dbed9dfef5 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Tue, 24 Nov 2015 17:00:27 -0800 Subject: [PATCH] removed typeof check for isArray --- src/compiler/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/core.ts b/src/compiler/core.ts index 7590f8c73cd..cae7bd82103 100644 --- a/src/compiler/core.ts +++ b/src/compiler/core.ts @@ -380,7 +380,7 @@ namespace ts { * Tests whether a value is an array. */ export function isArray(value: any): value is any[] { - return Array.isArray ? Array.isArray(value) : typeof value === "object" && value instanceof Array; + return Array.isArray ? Array.isArray(value) : value instanceof Array; } export function memoize(callback: () => T): () => T {