@lou.codes/predicates
Version:
🧐 Predicate util functions
14 lines (13 loc) • 364 B
JavaScript
import { isArray as arrayIsArray } from "@lou.codes/constants/Array.js";
/**
* Check if given `input` is an instance of `Array`.
*
* @category Iterables
* @example
* ```typescript
* isArray([]); // true
* isArray({ length: 42 }); // false
* ```
* @returns `true` if the given value is an array, `false` otherwise.
*/
export const isArray = arrayIsArray;