Function isArray

  • Checks whether the given value is an array.

    Type Parameters

    • TElement

      Array element type.

    • TOther = unknown

      Non-array value type the value may have.

    Parameters

    • value: TOther | TElement[]

      Either element, array of elements, null, or undefined.

    Returns value is TElement[]

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

  • Checks whether the given value is a readonly array.

    Type Parameters

    • TElement

      Array element type.

    • TOther = unknown

      Non-array value type the value may have.

    Parameters

    • value: TOther | readonly TElement[]

      Either element, readonly array of elements, null, or undefined.

    Returns value is readonly TElement[]

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

Generated using TypeDoc