Skip to main content

CommonIsArray

Callable

  • CommonIsArray(arg: unknown): arg is readonly unknown[]

  • A version of Array.isArray more friendly towards readonly arrays.


    Parameters

    • arg: unknown

      The to-be validated object

    Returns arg is readonly unknown[]

    Whether the passed object is a (potentially readonly) array