We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd51ebf commit 0ad2efcCopy full SHA for 0ad2efc
src/compiler/core.ts
@@ -380,7 +380,7 @@ namespace ts {
380
* Tests whether a value is an array.
381
*/
382
export function isArray(value: any): value is any[] {
383
- return Array.isArray ? Array.isArray(value) : typeof value === "object" && value instanceof Array;
+ return Array.isArray ? Array.isArray(value) : value instanceof Array;
384
}
385
386
export function memoize<T>(callback: () => T): () => T {
0 commit comments