Skip to content

Commit 0ad2efc

Browse files
committed
removed typeof check for isArray
1 parent fd51ebf commit 0ad2efc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ namespace ts {
380380
* Tests whether a value is an array.
381381
*/
382382
export function isArray(value: any): value is any[] {
383-
return Array.isArray ? Array.isArray(value) : typeof value === "object" && value instanceof Array;
383+
return Array.isArray ? Array.isArray(value) : value instanceof Array;
384384
}
385385

386386
export function memoize<T>(callback: () => T): () => T {

0 commit comments

Comments
 (0)