mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 16:38:05 -06:00
removed typeof check for isArray
This commit is contained in:
parent
fd51ebf0fd
commit
0ad2efcd61
@ -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<T>(callback: () => T): () => T {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user