| 1 | /**
|
|---|
| 2 | * Creates an array of the own enumerable property values of `object`.
|
|---|
| 3 | *
|
|---|
| 4 | * @template T
|
|---|
| 5 | * @param {Record<string, T> | Record<number, T> | ArrayLike<T> | null | undefined} object - The object to query.
|
|---|
| 6 | * @returns {T[]} Returns an array of property values.
|
|---|
| 7 | *
|
|---|
| 8 | * @example
|
|---|
| 9 | * const obj = { a: 1, b: 2, c: 3 };
|
|---|
| 10 | * values(obj); // => [1, 2, 3]
|
|---|
| 11 | */
|
|---|
| 12 | declare function values<T>(object: Record<string, T> | Record<number, T> | ArrayLike<T> | null | undefined): T[];
|
|---|
| 13 | /**
|
|---|
| 14 | * Creates an array of the own enumerable property values of `object`.
|
|---|
| 15 | *
|
|---|
| 16 | * @template T
|
|---|
| 17 | * @param {T | null | undefined} object - The object to query.
|
|---|
| 18 | * @returns {Array<T[keyof T]>} Returns an array of property values.
|
|---|
| 19 | *
|
|---|
| 20 | * @example
|
|---|
| 21 | * const obj = { a: 1, b: 2, c: 3 };
|
|---|
| 22 | * values(obj); // => [1, 2, 3]
|
|---|
| 23 | */
|
|---|
| 24 | declare function values<T extends object>(object: T | null | undefined): Array<T[keyof T]>;
|
|---|
| 25 | /**
|
|---|
| 26 | * Creates an array of the own enumerable property values of `object`.
|
|---|
| 27 | *
|
|---|
| 28 | * @param {any} object - The object to query.
|
|---|
| 29 | * @returns {any[]} Returns an array of property values.
|
|---|
| 30 | *
|
|---|
| 31 | * @example
|
|---|
| 32 | * const obj = { a: 1, b: 2, c: 3 };
|
|---|
| 33 | * values(obj); // => [1, 2, 3]
|
|---|
| 34 | */
|
|---|
| 35 | declare function values(object: any): any[];
|
|---|
| 36 |
|
|---|
| 37 | export { values };
|
|---|