Function isArray

  • Check whether given value is an array Acts as a type-predicate, so can be used for narrowing the type of subsequent code.

    Parameters

    • v: unknown

    Returns v is any[]