Checks if the type of value is an Array.
import { isArray, isObject } from "@nevware21/ts-utils";function performAction(value: any) { if (isArray(value) || isObject(value)) { // Do something } else { // Do something else }} Copy
import { isArray, isObject } from "@nevware21/ts-utils";function performAction(value: any) { if (isArray(value) || isObject(value)) { // Do something } else { // Do something else }}
Value to be checked.
True if the value is a Array, false otherwise.
Checks if the type of value is an Array.
Example