Skip to content

Commit 0568d26

Browse files
author
Orta Therox
authored
Revert "Support the new 4.0 definition of isArray (#102413)" (#116571)
This reverts commit d47ddb6.
1 parent 33d7155 commit 0568d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vs/base/common/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { URI, UriComponents } from 'vs/base/common/uri';
88
/**
99
* @returns whether the provided parameter is a JavaScript Array or not.
1010
*/
11-
export function isArray<T>(array: T | {}): array is T extends readonly any[] ? (unknown extends T ? never : readonly any[]) : any[] {
11+
export function isArray(array: any): array is any[] {
1212
return Array.isArray(array);
1313
}
1414

0 commit comments

Comments
 (0)