Function isArray

  • Checks if a given value is an array.

    Remarks

    This function is equivalent to Array.isArray.

    Example

    isArray(['hello', 'world])
    // => true

    isArray(10)
    // => false

    Type Parameters

    • T

      The element type of the array.

    Parameters

    • value: T

      The value to be checked.

    Returns value is T

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

Generated using TypeDoc v0.24.7