• Checks if the type of value is an Array.

    Type Parameters

    • T = any

    Parameters

    • arg: any

    Returns arg is T[]

    True if the value is a Array, false otherwise.

    Example

    import { isArray, isObject } from "@nevware21/ts-utils";

    function performAction(value: any) {
    if (isArray(value) || isObject(value)) {
    // Do something
    } else {
    // Do something else
    }
    }