Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 649 Bytes

File metadata and controls

43 lines (31 loc) · 649 Bytes

typelab / assertions / IsObjectArrayLike

type IsObjectArrayLike<T> = _IsTrue<IfObjectArrayLike<T, true, false>>;

Checks if a given type T is an Object Array Like type.

Type Parameters

Type Parameter Description

T

The type to be checked.

Returns

true if T is an Object Array Like type, false otherwise.

Example

type Valid = IsObjectArrayLike<{ 0: number; 1: number }>; // true
type Invalid = IsObjectArrayLike<{ 0: number; a: number }>; // false