• Check if given input is an instance of Array.

    Example

    isArray([]); // true
    isArray({ length: 42 }); // false

    Type Parameters

    • Item

    Parameters

    • input: unknown

    Returns input is ReadOnlyArray<Item>

    true if the given value is an array, false otherwise.