reports/frontend/node_modules/es-toolkit/dist/compat/object/values.mjs
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

16 lines
403 B
JavaScript

//#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 [];
return Object.values(object);
}
//#endregion
export { values };