|
Last change
on this file was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
958 bytes
|
| Line | |
|---|
| 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 | */
|
|---|
| 7 | declare 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 | */
|
|---|
| 16 | declare 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 | */
|
|---|
| 23 | declare function isArrayLike(value: any): value is {
|
|---|
| 24 | length: number;
|
|---|
| 25 | };
|
|---|
| 26 |
|
|---|
| 27 | export { isArrayLike };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.