source: node_modules/es-toolkit/dist/compat/object/values.d.ts

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

Added visualizations

  • Property mode set to 100644
File size: 1.2 KB
Line 
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 */
12declare 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 */
24declare 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 */
35declare function values(object: any): any[];
36
37export { values };
Note: See TracBrowser for help on using the repository browser.