Skip to content

Commit

Permalink
Revert "Support the new 4.0 definition of isArray (microsoft#102413)" (
Browse files Browse the repository at this point in the history
…microsoft#116571)

This reverts commit d47ddb6.
  • Loading branch information
Orta Therox authored Feb 12, 2021
1 parent 33d7155 commit 0568d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vs/base/common/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { URI, UriComponents } from 'vs/base/common/uri';
/**
* @returns whether the provided parameter is a JavaScript Array or not.
*/
export function isArray<T>(array: T | {}): array is T extends readonly any[] ? (unknown extends T ? never : readonly any[]) : any[] {
export function isArray(array: any): array is any[] {
return Array.isArray(array);
}

Expand Down

0 comments on commit 0568d26

Please sign in to comment.