Add generic version of Array.isArray

This commit is contained in:
Johannes Rieken
2016-06-16 16:05:59 +02:00
parent 0fde58dced
commit d64cd45e96

8
src/typings/lib.array-ext.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
interface ArrayConstructor {
isArray<T>(arg: any): arg is Array<T>;
}