source: node_modules/es-toolkit/dist/compat/predicate/isArrayLike.d.ts@ ba17441

Last change on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 6 months ago

Added visualizations

  • Property mode set to 100644
File size: 958 bytes
RevLine 
[a762898]1/**
2 * Checks if `value` is array-like. This overload is for compatibility with lodash type checking.
3 *
4 * @param {T} t The value to check.
5 * @returns {boolean} Returns `true` if `value` is array-like, else `false`.
6 */
7declare function isArrayLike<T extends {
8 __lodashAnyHack: any;
9}>(t: T): boolean;
10/**
11 * Checks if `value` is array-like. Functions, null, and undefined are never array-like.
12 *
13 * @param {((...args: any[]) => any) | null | undefined} value The value to check.
14 * @returns {value is never} Returns `false` for functions, null, and undefined.
15 */
16declare function isArrayLike(value: ((...args: any[]) => any) | null | undefined): value is never;
17/**
18 * Checks if `value` is array-like.
19 *
20 * @param {any} value The value to check.
21 * @returns {value is { length: number }} Returns `true` if `value` is array-like, else `false`.
22 */
23declare function isArrayLike(value: any): value is {
24 length: number;
25};
26
27export { isArrayLike };
Note: See TracBrowser for help on using the repository browser.