FunctionValue to be checked.
True if the value is array-like, false otherwise.
import { isArrayLike } from "@nevware21/ts-utils";
isArrayLike([1, 2, 3]); // true
isArrayLike("hello"); // true
isArrayLike({ length: 3, 0: "a", 1: "b", 2: "c" }); // true
isArrayLike({ length: "3" }); // false (length is not a number)
isArrayLike({ 0: "a", 1: "b" }); // false (no length property)
isArrayLike(null); // false
isArrayLike(undefined); // false
Checks if the type of value is array-like (has a numeric length property and numeric indices).