import { keys } from "./keys.mjs";
//#region src/compat/object/values.ts
/**
* 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]
*/
function values(object) {
	if (object == null) return [];
	const objectKeys = keys(object);
	const result = new Array(objectKeys.length);
	for (let i = 0; i < objectKeys.length; i++) result[i] = object[objectKeys[i]];
	return result;
}
//#endregion
export { values };
