@theholocron/array-utils
v1.2.4
Published
Convert or manipulate arrays.
Downloads
1,479
Readme
@theholocron/array-utils
Array validation utilities.
Installation
pnpm add @theholocron/array-utilsUsage
import { isValid } from "@theholocron/array-utils";
isValid(["a", "b"]); // true — non-empty array
isValid([]); // false — empty array
isValid(null); // false — null
isValid(undefined); // false — undefinedisValid(item)
Returns true if the value is a non-null, non-undefined, non-empty array. Returns false for null, undefined, or [].
Documentation
Check out The Holocron Archive for more information.
