DieselDepot-APP/node_modules/es-toolkit/dist/compat/object/values.d.ts
SJCoetz def597c157 chore: add generated build artifacts and node module type files
add all Next.js build outputs and third-party dependency type declaration files
2026-07-20 01:18:42 +02:00

38 lines
No EOL
1.1 KiB
TypeScript

//#region src/compat/object/values.d.ts
/**
* Creates an array of the own enumerable property values of `object`.
*
* @template T
* @param object - The object to query.
* @returns Returns an array of property values.
*
* @example
* const obj = { a: 1, b: 2, c: 3 };
* values(obj); // => [1, 2, 3]
*/
declare function values<T>(object: Record<string, T> | Record<number, T> | ArrayLike<T> | null | undefined): T[];
/**
* Creates an array of the own enumerable property values of `object`.
*
* @template T
* @param object - The object to query.
* @returns Returns an array of property values.
*
* @example
* const obj = { a: 1, b: 2, c: 3 };
* values(obj); // => [1, 2, 3]
*/
declare function values<T extends object>(object: T | null | undefined): Array<T[keyof T]>;
/**
* Creates an array of the own enumerable property values of `object`.
*
* @param object - The object to query.
* @returns Returns an array of property values.
*
* @example
* const obj = { a: 1, b: 2, c: 3 };
* values(obj); // => [1, 2, 3]
*/
declare function values(object: any): any[];
//#endregion
export { values };